Commit f8965365 authored by nanahira's avatar nanahira

still some minor fix

parent 01504985
Pipeline #1256 passed with stages
in 11 minutes and 49 seconds
...@@ -22,7 +22,7 @@ class DataManager { ...@@ -22,7 +22,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;
......
...@@ -45,7 +45,7 @@ export class DataManager { ...@@ -45,7 +45,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