@vida-global/apps-tools 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -56,10 +56,13 @@ class AppController extends VidaServerController {
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
async invokeAppManager() {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const context
|
|
59
|
+
let { functionArgs,
|
|
60
|
+
functionName,
|
|
61
|
+
userContext } = this.params
|
|
62
|
+
const context = this.appManager.context(userContext);
|
|
63
|
+
|
|
64
|
+
if (!Array.isArray(functionArgs)) functionArgs = [functionArgs];
|
|
65
|
+
|
|
63
66
|
let resp = await context[functionName](...functionArgs)
|
|
64
67
|
if (resp.serialize && typeof resp.serialize === 'function') {
|
|
65
68
|
resp = await resp.serialize()
|