Commit 9619669e authored by nanahira's avatar nanahira

Merge branch 'master' into tcg_random

parents ac40e4fb 7b146e4f
......@@ -41,6 +41,7 @@ class DataManager {
else {
await runner.rollbackTransaction();
}
await runner.release();
}
async init() {
this.db = await typeorm_1.createConnection({
......@@ -281,6 +282,7 @@ class DataManager {
await runner.rollbackTransaction();
this.log.warn(`Failed to clear duel logs: ${e.toString()}`);
}
await runner.release();
}
async saveDuelLog(name, roomId, cloudReplayId, replayFilename, roomMode, duelCount, playerInfos) {
const duelLog = new DuelLog_1.DuelLog();
......
......@@ -62,6 +62,7 @@ export class DataManager {
} else {
await runner.rollbackTransaction();
}
await runner.release();
}
async init() {
this.db = await createConnection({
......@@ -308,6 +309,7 @@ export class DataManager {
await runner.rollbackTransaction();
this.log.warn(`Failed to clear duel logs: ${e.toString()}`);
}
await runner.release();
}
async saveDuelLog(name: string, roomId: number, cloudReplayId: number, replayFilename: string, roomMode: number, duelCount: number, playerInfos: DuelLogPlayerInfo[]) {
const duelLog = new DuelLog();
......
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