perf: 站点IP监控前先同步一下IP

This commit is contained in:
xiaojunnuo
2025-07-01 22:33:27 +08:00
parent 7c0f43c8a3
commit a080b606ab
4 changed files with 51 additions and 21 deletions
@@ -96,7 +96,7 @@ export class SiteInfoController extends CrudController<SiteIpService> {
const userId = this.getUserId();
await this.siteInfoService.checkUserId(siteId, userId);
const siteEntity = await this.siteInfoService.info(siteId);
await this.service.checkAll(siteEntity);
await this.service.syncAndCheck(siteEntity);
return this.ok();
}