feat: struct type feature config (#5142)

This commit is contained in:
DarkSky
2023-12-14 09:50:51 +00:00
parent 2b7f6f8b74
commit 0c2d2f8d16
33 changed files with 1223 additions and 1015 deletions
@@ -240,8 +240,7 @@ export class DocHistoryManager {
}
const quota = await this.quota.getUserQuota(permission.userId);
return new Date(Date.now() + quota.feature.configs.historyPeriod);
return quota.feature.historyPeriodFromNow;
}
@Cron(CronExpression.EVERY_DAY_AT_MIDNIGHT /* everyday at 12am */)