Commit dbc3ea98 authored by Milan Wikarski's avatar Milan Wikarski

Upgrade from 2.

5.
4" [patch]
parent 21e29f50
......@@ -89,7 +89,7 @@ class Database {
/**
* Begins a transaction
*
* @returns {Promise.<Boolean>} success
* @returns {Promise.<GenericQuery>} success
*/
begin() {
if (this._transaction) {
......@@ -102,9 +102,9 @@ class Database {
/**
* Commits an active transaction
*
* @returns {Promise.<Boolean>} success
* @returns {Promise.<GenericQuery>} success
*/
async commit() {
commit() {
if (!this._transaction) {
throw new Error('No transaction is active');
}
......
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