Less plug:run noise
This commit is contained in:
@@ -36,7 +36,6 @@ export function pageIndexSyscalls(kv: KVStore): SysCallMapping {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"index.delete": (_ctx, page: string, key: string) => {
|
"index.delete": (_ctx, page: string, key: string) => {
|
||||||
console.log("delete", page, key);
|
|
||||||
return kv.batchDelete([
|
return kv.batchDelete([
|
||||||
`index${sep}${page}${sep}${key}`,
|
`index${sep}${page}${sep}${key}`,
|
||||||
`indexByKey${sep}${key}${sep}${page}`,
|
`indexByKey${sep}${key}${sep}${page}`,
|
||||||
@@ -68,7 +67,6 @@ export function pageIndexSyscalls(kv: KVStore): SysCallMapping {
|
|||||||
`index${sep}${page}${sep}${prefix}`,
|
`index${sep}${page}${sep}${prefix}`,
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
console.log("GOt back this key to delete", result.key);
|
|
||||||
const [_ns, page, key] = result.key.split(sep);
|
const [_ns, page, key] = result.key.split(sep);
|
||||||
await apiObj["index.delete"](_ctx, page, key);
|
await apiObj["index.delete"](_ctx, page, key);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,9 @@ export async function plugRunCommand(
|
|||||||
port,
|
port,
|
||||||
hostname,
|
hostname,
|
||||||
);
|
);
|
||||||
|
if (result) {
|
||||||
console.log("Output", result);
|
console.log("Output", result);
|
||||||
|
}
|
||||||
Deno.exit(0);
|
Deno.exit(0);
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
console.error(e.message);
|
console.error(e.message);
|
||||||
|
|||||||
Reference in New Issue
Block a user