Commit f8965365 authored by nanahira's avatar nanahira

still some minor fix

parent 01504985
......@@ -22,7 +22,7 @@ class DataManager {
this.log = log;
}
async transaction(fun) {
const runner = await this.db.createQueryRunner();
const runner = this.db.createQueryRunner();
await runner.connect();
await runner.startTransaction();
let result = false;
......
......@@ -45,7 +45,7 @@ export class DataManager {
this.log = log;
}
private async transaction(fun: (mdb: EntityManager) => Promise<boolean>) {
const runner = await this.db.createQueryRunner();
const runner = this.db.createQueryRunner();
await runner.connect();
await runner.startTransaction();
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