Skip to content

Commit 1d8357f

Browse files
by default waitfortxcompletion
1 parent e67f9d7 commit 1d8357f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/worker/executors/transaction/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ export class Transaction extends Base {
164164
const query = request.query;
165165

166166
const callAPI = (api: typeof Select) => {
167+
query.returnImmediate = true;
167168
requestObj = new api(
168169
query, this.util
169170
);
@@ -233,4 +234,4 @@ export class Transaction extends Base {
233234
});
234235
return invalidTable;
235236
}
236-
}
237+
}

Diff for: src/worker/executors/update/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { IUpdateQuery, ISelectQuery, QUERY_OPTION, API, IWhereQuery, DATA_TYPE, ERROR_TYPE, promiseAll } from "@/common";
22
import { IDBUtil } from "@/worker/idbutil";
3-
import { DbMeta } from "@worker/model";
43
import { QueryHelper } from "../query_helper";
54
import { promiseReject, isArray, getDataType, variableFromPath, LogHelper } from "@worker/utils";
65
import { BaseFetch } from "@executors/base_fetch";
@@ -15,7 +14,7 @@ export class Update extends BaseFetch {
1514

1615
constructor(query: IUpdateQuery, util: IDBUtil) {
1716
super();
18-
query.returnImmediate = query.returnImmediate == null ? true : query.returnImmediate;
17+
query.returnImmediate = query.returnImmediate == null ? false : query.returnImmediate;
1918
this.query = query as any;
2019
this.util = util;
2120
this.tableName = query.in;

0 commit comments

Comments
 (0)