Skip to content

Commit e0033d4

Browse files
authored
Merge pull request #5577 from Countly/expire-drill-data-script
[Fix] Expire drill data script
2 parents 0c4a116 + e0f9e29 commit e0033d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/scripts/expire-data/countly_single_app_expireDataBatches.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function processDrillCollection(collection, seconds, callback) {
209209

210210
function generateIterationList(z) {
211211
z = (start === 0 && z) ? z : start;
212-
if (timeSpan === 0 && start === 0) {
212+
if (timeSpan === 0 && z === 0) {
213213
listed.push({"collection": collection.collection, "db": collection.db, "start": 0, "end": end, "query": {"ts": {"$lt": end}}});
214214
}
215215
else if (timeSpan === 0) {

0 commit comments

Comments
 (0)