mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 09:47:46 +03:00
1.3.5
Мда... Хуже не придумаешь.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user