Skip to content

Commit

Permalink
Update compare_drill_aggregated_csv.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmeghana authored Nov 29, 2024
1 parent 3ff6ece commit 2d67880
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/scripts/data-reports/compare_drill_aggregated.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ Promise.all([pluginManager.dbConnection("countly"), pluginManager.dbConnection("
console.log(eee);
reject();
});
}
}
else {
console.log("No events in the App");
console.log("---------------------------------");
Expand Down Expand Up @@ -238,7 +238,7 @@ Promise.all([pluginManager.dbConnection("countly"), pluginManager.dbConnection("

console.log(JSON.stringify(endReport));
close();
}
}
catch (err) {
console.error("Failed to save partial report:", err);
}
Expand All @@ -260,7 +260,7 @@ Promise.all([pluginManager.dbConnection("countly"), pluginManager.dbConnection("
}
fs.writeFileSync(path, csvRows.join("\n"));
console.log("Partial summary report saved to '" + path + "'.");
}
}
catch (err) {
console.error("Failed to save partial report:", err);
}
Expand All @@ -269,10 +269,10 @@ Promise.all([pluginManager.dbConnection("countly"), pluginManager.dbConnection("
}
function close() {
try {
if (countlyDb?.close) {
if (countlyDb?.close) {
countlyDb.close();
}
if (drillDb?.close) {
if (drillDb?.close) {
drillDb.close();
}
}
Expand Down

0 comments on commit 2d67880

Please sign in to comment.