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
564b6204
Commit
564b6204
authored
Mar 28, 2020
by
Milan Wikarski
Browse files
Upgrade from 2.
5. 3" [patch]
parent
b5f0acb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
0
0 → 100644
View file @
564b6204
src/database.class.js
View file @
564b6204
...
@@ -96,7 +96,7 @@ class Database {
...
@@ -96,7 +96,7 @@ class Database {
throw
new
Error
(
'
A transaction is already active
'
);
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 {
...
@@ -109,7 +109,7 @@ class Database {
throw
new
Error
(
'
No transaction is active
'
);
throw
new
Error
(
'
No transaction is active
'
);
}
}
return
this
.
query
(
'
COMMIT
'
);
return
this
.
query
(
'
COMMIT
'
)
.
onsuccess
(()
=>
(
this
.
_transaction
=
false
))
;
}
}
}
}
...
...
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