Skip to content

Commit

Permalink
declare data in count
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Apr 23, 2024
1 parent 56a2e5d commit 3466a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/database/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3466a65

Please sign in to comment.