fix output
All checks were successful
Build and push Doorman UI / API / docker (push) Successful in 1m22s

This commit is contained in:
Martin Dimitrov 2024-10-26 15:49:07 -07:00
parent 016e0cfa85
commit 2d8800bf0e

View File

@ -11,12 +11,10 @@ exports.handler = async function(context, event, callback) {
const fingerprint = JSON.parse(event.json);
msg += `\`\`\`# Unlocked by\n${JSON.stringify(fingerprint, null, 4)}\`\`\``;
} catch (e) {
msg += `\`\`\`# Unlocked by\n# WARN: Unknown or corrupt raw fingerprint:\n ${fingerprint}\`\`\``;
msg += `\`\`\`# Unlocked by\n# WARN: Unknown or corrupt raw fingerprint:\n ${event.json}\`\`\``;
}
}
console.log(msg);
// user must be in "Doorman" server
await discord.sendMessageToUser(context,
event.discordUser,