befly 3.18.22 → 3.18.23

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.
@@ -551,6 +551,7 @@ export const dataOpsMethods = {
551
551
  redis: this.redis,
552
552
  dbName: this.dbName,
553
553
  sql: tx,
554
+ isTransaction: true,
554
555
  idMode: this.idMode,
555
556
  beflyMode: this.beflyMode
556
557
  });
@@ -15,7 +15,7 @@ function DbHelper(options) {
15
15
  this.dbName = options.dbName;
16
16
 
17
17
  this.sql = options.sql || null;
18
- this.isTransaction = Boolean(options.sql);
18
+ this.isTransaction = options.isTransaction === true;
19
19
  this.idMode = options.idMode === "autoId" ? "autoId" : "timeId";
20
20
  this.beflyMode = options.beflyMode === 0 ? 0 : 1;
21
21
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "befly",
3
- "version": "3.18.22",
4
- "gitHead": "fdf4570d70dbec2c68b317db54bdc9c8a7229c11",
3
+ "version": "3.18.23",
4
+ "gitHead": "d18f2e30b2e70845d26b4b7b5190b87eb8709337",
5
5
  "private": false,
6
6
  "description": "Befly - 为 Bun 专属打造的 JavaScript API 接口框架核心引擎",
7
7
  "keywords": [