chore: 优化性能

This commit is contained in:
xiaojunnuo
2024-09-24 11:11:08 +08:00
parent 9a3ff8ad1a
commit 8de56feeb7
5 changed files with 37 additions and 69 deletions
@@ -57,8 +57,7 @@ export class BasicController extends BaseController {
@Post('/updateLicense', { summary: 'sys:settings:edit' })
public async updateLicense(@Body(ALL) body: { license: string }) {
const installInfo: SysInstallInfo = await this.sysSettingsService.getSetting(SysInstallInfo);
await this.plusService.updateLicense(installInfo.siteId, body.license);
await this.plusService.updateLicense(body.license);
return this.ok(true);
}
}