@opra/sqb 1.0.0-beta.4 → 1.0.0-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.
@@ -106,7 +106,7 @@ class SqbEntityService extends core_1.ServiceBase {
106
106
  await connection.startTransaction();
107
107
  const out = await callback(connection, this);
108
108
  if (!oldInTransaction && connection.inTransaction)
109
- await connection.rollback();
109
+ await connection.commit();
110
110
  return out;
111
111
  }
112
112
  catch (e) {
@@ -103,7 +103,7 @@ export class SqbEntityService extends ServiceBase {
103
103
  await connection.startTransaction();
104
104
  const out = await callback(connection, this);
105
105
  if (!oldInTransaction && connection.inTransaction)
106
- await connection.rollback();
106
+ await connection.commit();
107
107
  return out;
108
108
  }
109
109
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/sqb",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "Opra SQB adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -10,8 +10,8 @@
10
10
  "valgen": "^5.10.0"
11
11
  },
12
12
  "peerDependencies": {
13
- "@opra/core": "^1.0.0-beta.4",
14
- "@opra/http": "^1.0.0-beta.4",
13
+ "@opra/core": "^1.0.0-beta.5",
14
+ "@opra/http": "^1.0.0-beta.5",
15
15
  "@sqb/connect": ">= 4.18.0"
16
16
  },
17
17
  "type": "module",