Skip to content

Commit f9ad092

Browse files
author
Cihad Tekin
committed
[core] skipping the current iteration instead of returning when db is invalid
1 parent ade0b09 commit f9ad092

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/jobs/ttlCleanup.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class TTLCleanup extends job.Job {
2626
case "countly_out": dbInstance = common.outDb; break;
2727
}
2828
if (!dbInstance) {
29-
return log.e("Invalid db selection:", db);
29+
log.e("Invalid db selection:", db);
30+
continue;
3031
}
3132

3233
log.d("Started cleaning up", collection);

0 commit comments

Comments
 (0)