fix: rate limiting по пользователям из JWT + cleanup WebPush подписок и cooldown sync-push
This commit is contained in:
@@ -2,7 +2,7 @@ import { storage } from '../storage';
|
||||
import { webPushService } from '../services/web-push.service';
|
||||
import { eventBus } from '../routes/shared';
|
||||
|
||||
const SYNC_PUSH_COOLDOWN_MS = 60_000;
|
||||
const SYNC_PUSH_COOLDOWN_MS = 5 * 60 * 1000; // 5 minutes
|
||||
const lastPushByOrganization = new Map<number, number>();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user