chore: update user fix

This commit is contained in:
mahyargdz
2025-07-13 13:16:40 +03:30
parent ed0e14c89a
commit 00dd77377d
14 changed files with 205 additions and 209 deletions
@@ -27,7 +27,7 @@ export class QuotaSyncService {
/**
* Sync quota usage every 2 hours
*/
@Cron(CronExpression.EVERY_2_HOURS)
@Cron(CronExpression.EVERY_10_SECONDS)
async syncAllUsersQuota(): Promise<void> {
const em = this.em.fork();
this.logger.log("Starting quota synchronization for all users");
@@ -66,7 +66,7 @@ export class QuotaSyncService {
/**
* Sync business quota usage every 4 hours
*/
@Cron(CronExpression.EVERY_4_HOURS)
@Cron(CronExpression.EVERY_10_SECONDS)
async syncAllBusinessQuotas(): Promise<void> {
const em = this.em.fork();
this.logger.log("Starting business quota synchronization");