mirror of
https://github.com/certd/certd.git
synced 2026-04-20 17:57:41 +08:00
fix: 修复导入在线插件不生效的bug
This commit is contained in:
@@ -57,12 +57,12 @@ export class PluginController extends CrudController<PluginService> {
|
||||
|
||||
@Post('/delete', { summary: 'sys:settings:edit' })
|
||||
async delete(@Query('id') id: number) {
|
||||
return super.delete(id);
|
||||
return super.deleteByIds([id]);
|
||||
}
|
||||
|
||||
@Post('/deleteByIds', { summary: 'sys:settings:edit' })
|
||||
async deleteByIds(@Body('ids') ids: number[]) {
|
||||
const res = await this.service.delete(ids);
|
||||
const res = await this.service.deleteByIds(ids);
|
||||
return this.ok(res);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user