Skip to content

Commit

Permalink
fix(api): add processMessageChain require to top of /api/message
Browse files Browse the repository at this point in the history
  • Loading branch information
ejfox committed Jul 10, 2024
1 parent f347107 commit 7ef41be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ app.post("/api/message", async (req, res) => {
const { password, message, username } = req.body;
const passphrase = process.env.WEBHOOK_PASSPHRASE;

const { processMessageChain } = await require("./src/chain");

// Verify the password
if (password !== passphrase) {
logger.error(`Password does not match passphrase`);
Expand Down

0 comments on commit 7ef41be

Please sign in to comment.