Skip to content

Commit

Permalink
Update Scheduler #build
Browse files Browse the repository at this point in the history
  • Loading branch information
iwansuryaningrat committed Jul 30, 2024
1 parent 3fd719b commit 3351e1f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/admin/services/scheduler.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export class SchedulerService {
let users = await this.userModel.deleteMany({ deletedAt: { $ne: null, $lt: endDay }, });
let schools = await this.schoolModel.deleteMany({ deletedAt: { $ne: null, $lt: endDay } });
let games = await this.gameModel.deleteMany({ deletedAt: { $ne: null, $lt: endDay } });
let levels = await this.levelModel.deleteMany({ deletedAt: { $ne: null, $lt: endDay } });
let scores = await this.scoreModel.deleteMany({ deletedAt: { $ne: null, $lt: endDay } });
let records = await this.recordModel.deleteMany({ deletedAt: { $ne: null, $lt: endDay } });
// let levels = await this.levelModel.deleteMany({ deletedAt: { $ne: null, $lt: endDay } });
// let scores = await this.scoreModel.deleteMany({ deletedAt: { $ne: null, $lt: endDay } });
// let records = await this.recordModel.deleteMany({ deletedAt: { $ne: null, $lt: endDay } });
let images = await this.imagesModel.deleteMany({ deletedAt: { $ne: null, $lt: endDay } });

let logs = await this.logsModel.deleteMany({
Expand All @@ -56,9 +56,9 @@ export class SchedulerService {
logs: logs.deletedCount,
schools: schools.deletedCount,
games: games.deletedCount,
levels: levels.deletedCount,
scores: scores.deletedCount,
records: records.deletedCount,
// levels: levels.deletedCount,
// scores: scores.deletedCount,
// records: records.deletedCount,
});
} catch (error) {
this.logger.error(this.clearDeletedContent.name);
Expand Down

0 comments on commit 3351e1f

Please sign in to comment.