mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 18:46:19 +08:00
feat: struct type feature config (#5142)
This commit is contained in:
@@ -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 */)
|
||||
|
||||
Reference in New Issue
Block a user