Commit 10a04a9d authored by nanahira's avatar nanahira

js

parent 0d4b8799
...@@ -39,6 +39,7 @@ class DataManager { ...@@ -39,6 +39,7 @@ class DataManager {
else { else {
await runner.rollbackTransaction(); await runner.rollbackTransaction();
} }
await runner.release();
} }
async init() { async init() {
this.db = await typeorm_1.createConnection({ this.db = await typeorm_1.createConnection({
...@@ -279,6 +280,7 @@ class DataManager { ...@@ -279,6 +280,7 @@ class DataManager {
await runner.rollbackTransaction(); await runner.rollbackTransaction();
this.log.warn(`Failed to clear duel logs: ${e.toString()}`); this.log.warn(`Failed to clear duel logs: ${e.toString()}`);
} }
await runner.release();
} }
async saveDuelLog(name, roomId, cloudReplayId, replayFilename, roomMode, duelCount, playerInfos) { async saveDuelLog(name, roomId, cloudReplayId, replayFilename, roomMode, duelCount, playerInfos) {
const duelLog = new DuelLog_1.DuelLog(); const duelLog = new DuelLog_1.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