Мда... Хуже не придумаешь.
This commit is contained in:
2024-10-10 23:52:51 +04:00
parent 64168dc517
commit a4d7bb9cdc
5 changed files with 30 additions and 17 deletions

View File

@@ -48,6 +48,21 @@ export class ScheduleService {
this.scheduleReplacerService,
);
}
setInterval(async () => {
const now = new Date();
if (now.getHours() != 7 || now.getMinutes() != 30) return;
await this.firebaseAdminService.sendByTopic("common", {
android: {
priority: "high",
ttl: 60 * 60 * 1000,
},
data: {
type: "lessons-start",
},
});
}, 60000);
}
getCacheStatus(): CacheStatusDto {