Commit f0f7e1fe authored by nanahira's avatar nanahira

Merge branch 'mc'

parents 7c748074 f8965365
Pipeline #1255 passed with stages
in 12 minutes and 32 seconds
...@@ -24,7 +24,7 @@ class DataManager { ...@@ -24,7 +24,7 @@ class DataManager {
this.log = log; this.log = log;
} }
async transaction(fun) { async transaction(fun) {
const runner = await this.db.createQueryRunner(); const runner = this.db.createQueryRunner();
await runner.connect(); await runner.connect();
await runner.startTransaction(); await runner.startTransaction();
let result = false; let result = false;
......
...@@ -47,7 +47,7 @@ export class DataManager { ...@@ -47,7 +47,7 @@ export class DataManager {
this.log = log; this.log = log;
} }
private async transaction(fun: (mdb: EntityManager) => Promise<boolean>) { private async transaction(fun: (mdb: EntityManager) => Promise<boolean>) {
const runner = await this.db.createQueryRunner(); const runner = this.db.createQueryRunner();
await runner.connect(); await runner.connect();
await runner.startTransaction(); await runner.startTransaction();
let result = false; let result = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment