Merge pull request #94 from andybalaam/patch-1

Fix spelling of received
This commit is contained in:
Will Hunt 2021-12-13 13:09:41 +00:00 committed by GitHub
commit b34130d7ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,7 +178,7 @@ export class GenericHookConnection extends BaseConnection implements IConnection
if (typeof data.text === "string") { if (typeof data.text === "string") {
msg += data.text; msg += data.text;
} else { } 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. // TODO: Transform Slackdown into markdown.
@ -199,12 +199,12 @@ export class GenericHookConnection extends BaseConnection implements IConnection
filename: `generic-hook.${this.hookId}`, filename: `generic-hook.${this.hookId}`,
}); });
if (context.result) { if (context.result) {
content = `Recieved webhook: ${context.result}`; content = `Received webhook: ${context.result}`;
} else { } else {
content = `No content`; content = `No content`;
} }
} catch (ex) { } catch (ex) {
content = `Webhook recieved but failed to process via transformation function`; content = `Webhook received but failed to process via transformation function`;
} }
} }
@ -271,4 +271,4 @@ export class GenericHookConnection extends BaseConnection implements IConnection
public toString() { public toString() {
return `GenericHookConnection ${this.hookId}`; return `GenericHookConnection ${this.hookId}`;
} }
} }