fix: 修复在相同的cron时偶尔无法触发定时任务的bug

This commit is contained in:
xiaojunnuo
2024-08-03 23:32:50 +08:00
parent 1cf8d4e5e7
commit 680941af11
8 changed files with 101 additions and 34 deletions
@@ -35,7 +35,11 @@ export class AutoInitSite {
// 授权许可
const licenseInfo: SysLicenseInfo = await this.sysSettingsService.getSetting(SysLicenseInfo);
await verify(licenseInfo.license);
const req = {
subjectId: installInfo.siteId,
license: licenseInfo.license,
};
await verify(req);
logger.info('初始化站点完成');
}