Skip to content

Commit de41377

Browse files
authored
Merge pull request #20 from ringcentral/fix/serverless-offline
fix: bot auth issue with serverless-offline
2 parents 82ce579 + 9304b04 commit de41377

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/apps/bot.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ const createApp = (handle: Function, conf: BotConfig) => {
1717
})) as BotType;
1818
await bot.setupWebHook(); // this might take a while, depends on when the bot user is ready
1919
await handle({type: 'BotAdded', bot});
20-
res.send('');
20+
res.status(200);
21+
res.send('ok'); // return string to fix issue for serverless-offline
2122
});
2223

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

0 commit comments

Comments
 (0)