Commit 13fa0c13 authored by nanahira's avatar nanahira

Merge branch 'mc'

parents 839b2361 48b69f81
Pipeline #12159 failed with stages
in 1 minute and 6 seconds
...@@ -53,7 +53,7 @@ class DataManager { ...@@ -53,7 +53,7 @@ class DataManager {
try { try {
// @ts-ignore // @ts-ignore
if (this.config.type !== 'sqlite') { if (this.config.type !== 'sqlite') {
this.db.transaction(async (mdb) => { await this.db.transaction(async (mdb) => {
const result = await fun(mdb); const result = await fun(mdb);
if (!result) { if (!result) {
throw new Error('Rollback requested.'); throw new Error('Rollback requested.');
......
...@@ -52,7 +52,7 @@ export class DataManager { ...@@ -52,7 +52,7 @@ export class DataManager {
try { try {
// @ts-ignore // @ts-ignore
if (this.config.type !== 'sqlite') { if (this.config.type !== 'sqlite') {
this.db.transaction(async (mdb) => { await this.db.transaction(async (mdb) => {
const result = await fun(mdb); const result = await fun(mdb);
if (!result) { if (!result) {
throw new Error('Rollback requested.'); throw new Error('Rollback requested.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment