Починил время отправки сообщений, расширил список мотивирующих цитат

This commit is contained in:
Zwuck committed 2025-12-17 10:58:57 +05:00
1 parent fdf78b92ef
commit 0269e62f16
2 files changed
+1072 -38

No files matched your search

+1070 -37
View File
File diff suppressed because it is too large. Load diff
+2 -1
View File
@@ -34,7 +34,8 @@ export class SchedulerService {
const diffMs = now.getTime() - lastSent.getTime();
const diffHours = diffMs / (1000 * 60 * 60);
if (diffHours >= user.frequency) {
// Allow 3 minutes tolerance (0.05 hours) for cron execution delays
if (diffHours >= user.frequency - 0.05) {
await this.sendQuote(user);
// Updating user lastQuoteSentAt to now
// Update expects telegramId. user.telegramId is BigInt.