Commit 564b6204 authored by Milan Wikarski's avatar Milan Wikarski
Browse files

Upgrade from 2.

5.
3" [patch]
parent b5f0acb6
......@@ -96,7 +96,7 @@ class Database {
throw new Error('A transaction is already active');
}
return this.query('BEGIN');
return this.query('BEGIN').onsuccess(() => (this._transaction = true));
}
/**
......@@ -109,7 +109,7 @@ class Database {
throw new Error('No transaction is active');
}
return this.query('COMMIT');
return this.query('COMMIT').onsuccess(() => (this._transaction = false));
}
}
......
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