Commit 01504985 authored by nanahira's avatar nanahira

rev

parent 0001e155
Pipeline #1254 passed with stages
in 12 minutes and 48 seconds
......@@ -21,9 +21,6 @@ class DataManager {
this.ready = false;
this.log = log;
}
async finalize() {
await this.db.close();
}
async transaction(fun) {
const runner = await this.db.createQueryRunner();
await runner.connect();
......
......@@ -44,9 +44,6 @@ export class DataManager {
this.ready = false;
this.log = log;
}
async finalize() {
await this.db.close();
}
private async transaction(fun: (mdb: EntityManager) => Promise<boolean>) {
const runner = await this.db.createQueryRunner();
await runner.connect();
......
......@@ -3953,7 +3953,3 @@ if true
return
init()
process.on 'SIGINT', ()->
if this.dataManager
await this.dataManager.finialize()
process.exit(0)
\ No newline at end of file
......@@ -5231,11 +5231,4 @@
init();
process.on('SIGINT', async function() {
if (this.dataManager) {
await this.dataManager.finialize();
return process.exit(0);
}
});
}).call(this);
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