velocious 1.0.69 → 1.0.70
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.
package/package.json
CHANGED
|
@@ -569,7 +569,13 @@ class VelociousDatabaseRecord {
|
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
static async transaction(callback) {
|
|
572
|
-
|
|
572
|
+
const useTransactions = this.connection().getConfiguration().record?.transactions
|
|
573
|
+
|
|
574
|
+
if (useTransactions !== false) {
|
|
575
|
+
await this.connection().transaction(callback)
|
|
576
|
+
} else {
|
|
577
|
+
return await callback()
|
|
578
|
+
}
|
|
573
579
|
}
|
|
574
580
|
|
|
575
581
|
static translates(...names) {
|