Commit 7c748074 authored by nanahira's avatar nanahira

Merge branch 'mc'

parents e2fb4cbf 01504985
Pipeline #1253 passed with stages
in 13 minutes and 55 seconds
......@@ -23,9 +23,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();
......
......@@ -46,9 +46,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();
......
......@@ -4211,7 +4211,3 @@ if true
return
init()
process.on 'SIGINT', ()->
if this.dataManager
await this.dataManager.finialize()
process.exit(0)
\ No newline at end of file
......@@ -5594,11 +5594,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