@saltcorn/postgres 1.1.4-beta.3 → 1.1.4-beta.5

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/postgres.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/postgres",
3
- "version": "1.1.4-beta.3",
3
+ "version": "1.1.4-beta.5",
4
4
  "description": "Postgres structures for Saltcorn, open-source no-code platform",
5
5
  "homepage": "https://saltcorn.com",
6
6
  "scripts": {
@@ -12,7 +12,7 @@
12
12
  "license": "MIT",
13
13
  "main": "index.js",
14
14
  "dependencies": {
15
- "@saltcorn/db-common": "1.1.4-beta.3",
15
+ "@saltcorn/db-common": "1.1.4-beta.5",
16
16
  "pg": "^8.13.1",
17
17
  "pg-copy-streams": "^6.0.6",
18
18
  "replacestream": "4.0.3"
package/postgres.js CHANGED
@@ -580,7 +580,7 @@ const tryCatchInTransaction = async (f, onError) => {
580
580
  const reqCon = getRequestContext();
581
581
  if (reqCon?.client) await query(`SAVEPOINT sp${rndid}`);
582
582
  try {
583
- await f();
583
+ return await f();
584
584
  } catch (error) {
585
585
  if (reqCon?.client) await query(`ROLLBACK TO SAVEPOINT sp${rndid}`);
586
586
  await onError(error);