wip fix profile create id propagation

This commit is contained in:
Tau
2019-11-06 17:28:30 -05:00
parent 1f257cccc4
commit dc06a9652f
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -24,10 +24,10 @@ export default async function aimedb(socket: Socket) {
}
}
txn.commit();
await txn.commit();
} catch (e) {
console.log("Aimedb: Connection error:\n", e);
txn.rollback();
await txn.rollback();
}
console.log("Aimedb: Connection closed\n");