From c348d715ad39294920af155af10b6b5ac8e9633a Mon Sep 17 00:00:00 2001 From: YING WANG <42584020+yingwang-us@users.noreply.github.com> Date: Thu, 30 Jul 2020 20:19:27 -0400 Subject: [PATCH] Fix unhandled exception (#541) * fix: UnhandledPromiseRejectionWarning: Unhandled promise rejection * update --- app/mongo/mongoClient.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/mongo/mongoClient.js b/app/mongo/mongoClient.js index 9ce1201ea..595763082 100644 --- a/app/mongo/mongoClient.js +++ b/app/mongo/mongoClient.js @@ -98,9 +98,14 @@ module.exports = class MongoClient { const db = await this._clientConnect(); for(let i=0; i