|
|
@ -5699,7 +5699,7 @@ class BaseModelSqlv2 { |
|
|
|
trx?: any; |
|
|
|
trx?: any; |
|
|
|
} = {}, |
|
|
|
} = {}, |
|
|
|
) { |
|
|
|
) { |
|
|
|
let transaction; |
|
|
|
const transaction = trx ?? (await this.dbDriver.transaction()); |
|
|
|
try { |
|
|
|
try { |
|
|
|
const columns = await this.model.getColumns(this.context); |
|
|
|
const columns = await this.model.getColumns(this.context); |
|
|
|
|
|
|
|
|
|
|
@ -5809,8 +5809,6 @@ class BaseModelSqlv2 { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
transaction = trx ?? (await this.dbDriver.transaction()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (const o of toBeUpdated) { |
|
|
|
for (const o of toBeUpdated) { |
|
|
|
await transaction(this.tnPath).update(o.d).where(o.wherePk); |
|
|
|
await transaction(this.tnPath).update(o.d).where(o.wherePk); |
|
|
|
} |
|
|
|
} |
|
|
|