Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NPM Packages
js-db
Commits
dbc3ea98
Commit
dbc3ea98
authored
Mar 28, 2020
by
Milan Wikarski
Browse files
Upgrade from 2.
5. 4" [patch]
parent
21e29f50
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/database.class.js
View file @
dbc3ea98
...
...
@@ -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
'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment