Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
48b69f81
Commit
48b69f81
authored
Apr 24, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix transaction
parent
c718a185
Pipeline
#12160
failed with stages
in 1 minute and 15 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
data-manager/DataManager.js
data-manager/DataManager.js
+1
-1
data-manager/DataManager.ts
data-manager/DataManager.ts
+1
-1
No files found.
data-manager/DataManager.js
View file @
48b69f81
...
...
@@ -51,7 +51,7 @@ class DataManager {
try
{
// @ts-ignore
if
(
this
.
config
.
type
!==
'
sqlite
'
)
{
this
.
db
.
transaction
(
async
(
mdb
)
=>
{
await
this
.
db
.
transaction
(
async
(
mdb
)
=>
{
const
result
=
await
fun
(
mdb
);
if
(
!
result
)
{
throw
new
Error
(
'
Rollback requested.
'
);
...
...
data-manager/DataManager.ts
View file @
48b69f81
...
...
@@ -50,7 +50,7 @@ export class DataManager {
try
{
// @ts-ignore
if
(
this
.
config
.
type
!==
'
sqlite
'
)
{
this
.
db
.
transaction
(
async
(
mdb
)
=>
{
await
this
.
db
.
transaction
(
async
(
mdb
)
=>
{
const
result
=
await
fun
(
mdb
);
if
(
!
result
)
{
throw
new
Error
(
'
Rollback requested.
'
);
...
...
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