Skip to content

Commit 507027e

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/fs-extra-11.3.2
2 parents b06d5cf + 48356d8 commit 507027e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/scripts/expire-data/delete_custom_events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Promise.all([pluginManager.dbConnection("countly"), pluginManager.dbConnection("
2222
common.drillDb = drillDb;
2323
//GET APP
2424
try {
25-
const app = await countlyDb.collection("apps").findOne({_id: ObjectId(APP_ID)}, {_id: 1, name: 1});
25+
const app = await countlyDb.collection("apps").findOne({_id: new ObjectId(APP_ID)}, {_id: 1, name: 1});
2626
console.log("App:", app.name);
2727
//GET EVENTS
2828
let events = EVENTS;

0 commit comments

Comments
 (0)