Refactor all the things

This commit is contained in:
Zef Hemel
2023-08-28 17:12:15 +02:00
parent 54d2deea15
commit 5ff1a8bae3
87 changed files with 930 additions and 896 deletions
+3 -3
View File
@@ -38,7 +38,7 @@ export async function runPlug(
});
if (indexFirst) {
await serverSystem.system.loadedPlugs.get("core")!.invoke(
await serverSystem.system.loadedPlugs.get("index")!.invoke(
"reindexSpace",
[],
);
@@ -53,8 +53,8 @@ export async function runPlug(
}
const result = await plug.invoke(funcName, args);
await serverSystem.close();
await serverSystem.kvStore?.delete();
// await Deno.remove(tempFile);
serverSystem.denoKv.close();
await Deno.remove(tempFile);
serverController.abort();
return result;
} else {