badmfck-api-server 2.2.5 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -190,6 +190,8 @@ class MysqlService extends BaseService_1.BaseService {
|
|
|
190
190
|
trx.conn.removeAllListeners();
|
|
191
191
|
await trx.conn.rollback();
|
|
192
192
|
trx.conn.release();
|
|
193
|
+
this.transactions = this.transactions.filter(i => i.id !== data.tid);
|
|
194
|
+
this.storeTransactionAsProblem(trx, err.message);
|
|
193
195
|
}
|
|
194
196
|
catch (e) {
|
|
195
197
|
rollbackError = this.createMysqlQueryError(e);
|
|
@@ -323,6 +325,7 @@ class MysqlService extends BaseService_1.BaseService {
|
|
|
323
325
|
i.conn.removeAllListeners();
|
|
324
326
|
await i.conn.rollback();
|
|
325
327
|
i.conn.release();
|
|
328
|
+
console.log("Transaction rollbacked: ", i.id, i.queries);
|
|
326
329
|
}
|
|
327
330
|
catch (e) {
|
|
328
331
|
(0, LogService_1.logError)("Can't release transaction connection", e);
|