mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Merge pull request #94 from andybalaam/patch-1
Fix spelling of received
This commit is contained in:
commit
b34130d7ea
@ -178,7 +178,7 @@ export class GenericHookConnection extends BaseConnection implements IConnection
|
||||
if (typeof data.text === "string") {
|
||||
msg += data.text;
|
||||
} else {
|
||||
msg += `Recieved webhook data:\n\n\`\`\`${JSON.stringify(data, undefined, 2)}\`\`\``;
|
||||
msg += `Received webhook data:\n\n\`\`\`${JSON.stringify(data, undefined, 2)}\`\`\``;
|
||||
}
|
||||
|
||||
// TODO: Transform Slackdown into markdown.
|
||||
@ -199,12 +199,12 @@ export class GenericHookConnection extends BaseConnection implements IConnection
|
||||
filename: `generic-hook.${this.hookId}`,
|
||||
});
|
||||
if (context.result) {
|
||||
content = `Recieved webhook: ${context.result}`;
|
||||
content = `Received webhook: ${context.result}`;
|
||||
} else {
|
||||
content = `No content`;
|
||||
}
|
||||
} catch (ex) {
|
||||
content = `Webhook recieved but failed to process via transformation function`;
|
||||
content = `Webhook received but failed to process via transformation function`;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user