@teamkeel/functions-runtime 0.357.2 → 0.358.1
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.
- package/package.json +1 -1
- package/src/database.js +0 -1
- package/src/handleJob.js +5 -1
package/package.json
CHANGED
package/src/database.js
CHANGED
package/src/handleJob.js
CHANGED
|
@@ -53,9 +53,13 @@ async function handleJob(request, config) {
|
|
|
53
53
|
const db = getDatabaseClient();
|
|
54
54
|
const jobFunction = jobs[request.method];
|
|
55
55
|
const actionType = PROTO_ACTION_TYPES.JOB;
|
|
56
|
+
const permissionFns = new Object();
|
|
57
|
+
|
|
58
|
+
// Jobs will have no permission functions yet.
|
|
59
|
+
permissionFns[request.method] = [];
|
|
56
60
|
|
|
57
61
|
const result = await tryExecuteFunction(
|
|
58
|
-
{ request, ctx, permitted, db, actionType },
|
|
62
|
+
{ request, ctx, permissionFns, permitted, db, actionType },
|
|
59
63
|
async () => {
|
|
60
64
|
// Return the job function to the containing tryExecuteFunction block
|
|
61
65
|
return jobFunction(ctx, request.params);
|