Templates 2.0 (#636)
Templates 2.0 and a whole bunch of other refactoring
This commit is contained in:
+1
-7
@@ -48,13 +48,7 @@ export async function runPlug(
|
||||
}, app.fetch);
|
||||
|
||||
if (functionName) {
|
||||
const [plugName, funcName] = functionName.split(".");
|
||||
|
||||
const plug = serverSystem.system.loadedPlugs.get(plugName);
|
||||
if (!plug) {
|
||||
throw new Error(`Plug ${plugName} not found`);
|
||||
}
|
||||
const result = await plug.invoke(funcName, args);
|
||||
const result = await serverSystem.system.invokeFunction(functionName, args);
|
||||
await serverSystem.close();
|
||||
serverSystem.kvPrimitives.close();
|
||||
serverController.abort();
|
||||
|
||||
Reference in New Issue
Block a user