mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
chore:
This commit is contained in:
@@ -100,7 +100,7 @@ export class PluginService extends BaseService<PluginEntity> {
|
||||
return records;
|
||||
}
|
||||
|
||||
async setDisabled(opts: { id: number; name: string; type: string; disabled: boolean }) {
|
||||
async setDisabled(opts: { id?: number; name?: string; type: string; disabled: boolean }) {
|
||||
const { id, name, type, disabled } = opts;
|
||||
if (!type) {
|
||||
throw new Error('参数错误: type 不能为空');
|
||||
|
||||
Reference in New Issue
Block a user