编辑器
Some checks failed
test / Run tests (push) Failing after 9s
build / Build (push) Failing after 14s

This commit is contained in:
2025-03-18 15:40:39 +08:00
parent 98c86d61f1
commit d682b4d566
8 changed files with 111 additions and 83 deletions

View File

@ -25,7 +25,7 @@ export class ScriptClient extends Client {
return this.do("getInstallInfo", uuid);
}
install(script: Script, code: string, upsertBy: InstallSource = "user") {
install(script: Script, code: string, upsertBy: InstallSource = "user"): Promise<{ update: boolean }> {
return this.do("install", { script, code, upsertBy });
}

View File

@ -178,7 +178,7 @@ export class ScriptService {
logger.info("install success");
// 广播一下
this.mq.publish("installScript", { script, update });
return Promise.resolve(true);
return Promise.resolve({ update });
})
.catch((e: any) => {
logger.error("install error", Logger.E(e));