We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b9e449 commit 02f2abdCopy full SHA for 02f2abd
bin/scripts/expire-data/delete_custom_events.js
@@ -22,7 +22,7 @@ Promise.all([pluginManager.dbConnection("countly"), pluginManager.dbConnection("
22
common.drillDb = drillDb;
23
//GET APP
24
try {
25
- const app = await countlyDb.collection("apps").findOne({_id: ObjectId(APP_ID)}, {_id: 1, name: 1});
+ const app = await countlyDb.collection("apps").findOne({_id: new ObjectId(APP_ID)}, {_id: 1, name: 1});
26
console.log("App:", app.name);
27
//GET EVENTS
28
let events = EVENTS;
0 commit comments