Skip to content

Commit

Permalink
Merge pull request #20 from ringcentral/fix/serverless-offline
Browse files Browse the repository at this point in the history
fix: bot auth issue with serverless-offline
  • Loading branch information
DaKingKong authored Sep 7, 2022
2 parents 82ce579 + 9304b04 commit de41377
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/apps/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const createApp = (handle: Function, conf: BotConfig) => {
})) as BotType;
await bot.setupWebHook(); // this might take a while, depends on when the bot user is ready
await handle({type: 'BotAdded', bot});
res.send('');
res.status(200);
res.send('ok'); // return string to fix issue for serverless-offline
});

app.post('/webhook', async (req, res) => {
Expand Down

0 comments on commit de41377

Please sign in to comment.