Skip to content

Commit

Permalink
NEEDS TO BE IMPROVED BUT WHO CARES!?!
Browse files Browse the repository at this point in the history
  • Loading branch information
Maghish committed May 17, 2024
1 parent 0d47ff9 commit 5ee6b37
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/methods/PushAfterInterval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,21 +122,18 @@ class PushAfterInterval {
console.log(
`↗️ |[${getCurrentTime()}]| Pushing ${dbName}/${collectionName}.json`
);
if (index === this.database.dbSpecificSettings.dbs.length) {
console.log(
`⚙️ |[${getCurrentTime()}]| PushAfterInterval instance terminated.`
);
process.exit(0);
} else {
index++;
}
});
}
}
console.log(
index === this.database.dbSpecificSettings.dbs.length,
index === this.database.dbSpecificSettings.dbs.length - 1
);
if (index === this.database.dbSpecificSettings.dbs.length - 1) {
console.log(
`⚙️ |[${getCurrentTime()}]| PushAfterInterval instance terminated.`
);
process.exit(0);
} else {
index++;
}
index++;
});
} catch (error) {
console.error(error);
Expand Down

0 comments on commit 5ee6b37

Please sign in to comment.