update
This commit is contained in:
@ -394,8 +394,9 @@ class GpsTracksModels {
|
||||
static bundleCreate2(logs = {}, rltm = {}) {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
let lock = null
|
||||
let conn = null
|
||||
try {
|
||||
const conn = await MysqlHelpers.createConnection()
|
||||
conn = await MysqlHelpers.createConnection()
|
||||
await MysqlHelpers.createTrx(conn)
|
||||
|
||||
let rltmLength = Object.keys(rltm).length
|
||||
@ -529,7 +530,7 @@ class GpsTracksModels {
|
||||
console.log("ERROR unlock mutex : " + rltm.device_id, unlockErr)
|
||||
}
|
||||
}
|
||||
// conn.release(); // release connection
|
||||
conn.release(); // release connection
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user