1
0

Less plug:run noise

This commit is contained in:
Zef Hemel 2023-08-15 07:55:07 +02:00
parent 4dbbc31cb9
commit 24100afedb
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,6 @@ export function pageIndexSyscalls(kv: KVStore): SysCallMapping {
}
},
"index.delete": (_ctx, page: string, key: string) => {
console.log("delete", page, key);
return kv.batchDelete([
`index${sep}${page}${sep}${key}`,
`indexByKey${sep}${key}${sep}${page}`,
@ -68,7 +67,6 @@ export function pageIndexSyscalls(kv: KVStore): SysCallMapping {
`index${sep}${page}${sep}${prefix}`,
)
) {
console.log("GOt back this key to delete", result.key);
const [_ns, page, key] = result.key.split(sep);
await apiObj["index.delete"](_ctx, page, key);
}

View File

@ -32,7 +32,9 @@ export async function plugRunCommand(
port,
hostname,
);
console.log("Output", result);
if (result) {
console.log("Output", result);
}
Deno.exit(0);
} catch (e: any) {
console.error(e.message);