@teamkeel/functions-runtime 0.396.2 → 0.396.3

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.396.2",
3
+ "version": "0.396.3",
4
4
  "description": "Internal package used by @teamkeel/sdk",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/database.js CHANGED
@@ -3,7 +3,6 @@ const neonserverless = require("@neondatabase/serverless");
3
3
  const { AsyncLocalStorage } = require("async_hooks");
4
4
  const { AuditContextPlugin } = require("./auditing");
5
5
  const pg = require("pg");
6
- const { PROTO_ACTION_TYPES } = require("./consts");
7
6
  const { withSpan } = require("./tracing");
8
7
  const ws = require("ws");
9
8
 
@@ -7,7 +7,7 @@ const { PermissionError } = require("./errors");
7
7
  // and handle any permissions checks. If a permission check fails, then an Error will be thrown and the catch block will be hit.
8
8
  function tryExecuteJob({ db, permitted, request, functionConfig }, cb) {
9
9
  return withPermissions(permitted, async ({ getPermissionState }) => {
10
- let requiresTransaction = true;
10
+ let requiresTransaction = false;
11
11
  if (functionConfig?.dbTransaction !== undefined) {
12
12
  requiresTransaction = functionConfig.dbTransaction;
13
13
  }
@@ -3,7 +3,7 @@ const { withAuditContext } = require("./auditing");
3
3
 
4
4
  // tryExecuteSubscriber will create a new database connection and execute the function call.
5
5
  function tryExecuteSubscriber({ request, db, functionConfig }, cb) {
6
- let requiresTransaction = true;
6
+ let requiresTransaction = false;
7
7
  if (functionConfig?.dbTransaction !== undefined) {
8
8
  requiresTransaction = functionConfig.dbTransaction;
9
9
  }