@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamkeel/functions-runtime",
3
- "version": "0.357.2",
3
+ "version": "0.358.1",
4
4
  "description": "Internal package used by @teamkeel/sdk",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/database.js CHANGED
@@ -15,7 +15,6 @@ async function withDatabase(db, actionType, cb) {
15
15
  let requiresTransaction = true;
16
16
 
17
17
  switch (actionType) {
18
- case PROTO_ACTION_TYPES.JOB:
19
18
  case PROTO_ACTION_TYPES.GET:
20
19
  case PROTO_ACTION_TYPES.LIST:
21
20
  requiresTransaction = false;
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);