From e0f4a3323a543045bc8fbc282ad7a9196e480895 Mon Sep 17 00:00:00 2001 From: Sarah Saunders Date: Thu, 1 Feb 2024 19:00:21 +0000 Subject: [PATCH] Update index.js (#3939) --- samples/javascript_nodejs/48.customQABot-all-features/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/javascript_nodejs/48.customQABot-all-features/index.js b/samples/javascript_nodejs/48.customQABot-all-features/index.js index 2e8dc0995..cce3ae262 100644 --- a/samples/javascript_nodejs/48.customQABot-all-features/index.js +++ b/samples/javascript_nodejs/48.customQABot-all-features/index.js @@ -88,7 +88,7 @@ server.listen(process.env.port || process.env.PORT || 3978, function() { }); // Listen for incoming requests. -server.post('/api/messages', (req, res) => { +server.post('/api/messages', async (req, res) => { adapter.processActivity(req, res, async (turnContext) => { // Route the message to the bot's main handler. await bot.run(turnContext);