mirror of
https://github.com/certd/certd.git
synced 2026-07-17 11:37:32 +08:00
Merge branch 'v2-dev' into v2_audit_log
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { getRuntimeDepsService } from "@certd/pipeline";
|
||||
import { ALL, Body, Controller, Inject, Post, Provide, Query, RequestIP } from "@midwayjs/core";
|
||||
import { addonRegistry, AddonService, CrudController, SysPrivateSettings, SysPublicSettings, SysSafeSetting, SysSettingsEntity, SysSettingsService } from "@certd/lib-server";
|
||||
import { cloneDeep, merge } from "lodash-es";
|
||||
@@ -7,7 +8,6 @@ import { getEmailSettings } from "../../../modules/sys/settings/fix.js";
|
||||
import { http, logger, utils } from "@certd/basic";
|
||||
import { CodeService } from "../../../modules/basic/service/code-service.js";
|
||||
import { SmsServiceFactory } from "../../../modules/basic/sms/factory.js";
|
||||
import { RuntimeDepsService } from "../../../modules/runtime-deps/runtime-deps-service.js";
|
||||
import { AuditType } from "../../../modules/sys/enterprise/service/audit-constants.js";
|
||||
|
||||
/**
|
||||
@@ -25,9 +25,6 @@ export class SysSettingsController extends CrudController<SysSettingsService> {
|
||||
codeService: CodeService;
|
||||
@Inject()
|
||||
addonService: AddonService;
|
||||
@Inject()
|
||||
runtimeDepsService: RuntimeDepsService;
|
||||
|
||||
getService() {
|
||||
return this.service;
|
||||
}
|
||||
@@ -240,7 +237,7 @@ export class SysSettingsController extends CrudController<SysSettingsService> {
|
||||
|
||||
@Post("/clearRuntimeDeps", { description: "sys:settings:edit", summary: "清除运行时依赖" })
|
||||
async clearRuntimeDeps() {
|
||||
await this.runtimeDepsService.clearRuntimeDeps();
|
||||
await getRuntimeDepsService().clearRuntimeDeps();
|
||||
await this.auditLog({ content: "清除了运行时依赖" });
|
||||
return this.ok(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user