Fixed cleanup perf logs in the last 2 weeks
MODIFY
src/scheduler/tasks/LoggingDatabaseTableCleanupTask.ts
src/scheduler/tasks/LoggingDatabaseTableCleanupTask.ts
@@ -89,7 +89,7 @@ export default class LoggingDatabaseTableCleanupTask extends SchedulerTask {
if (await LockingManager.acquire(performanceCleanUpLock)) {
try {
// Delete Performance Records (keep only 2 weeks)
- const deleteUpToDate = moment().subtract(2, 'w').startOf('week').toDate();
+ const deleteUpToDate = moment().subtract(2, 'w').toDate();
// Delete
const result = await PerformanceStorage.deletePerformanceRecords({ deleteUpToDate });
// Ok?

Fixed cleanup perf logs in the last 2 weeks