diff --git a/service/database/index.js b/service/database/index.js index a3cb91b..cca743c 100644 --- a/service/database/index.js +++ b/service/database/index.js @@ -61,7 +61,7 @@ class Mongo { const collection = getConnection(database).collection(collectionName); const count = await collection.count(query); - data =[{"count": count}]; + let data =[{"count": count}]; return data; } catch (e) {