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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
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
nanahira
srvpro
Commits
f0f7e1fe
Commit
f0f7e1fe
authored
Nov 16, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mc'
parents
7c748074
f8965365
Pipeline
#1255
passed with stages
in 12 minutes and 32 seconds
Changes
2
Pipelines
1
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 @
f0f7e1fe
...
@@ -24,7 +24,7 @@ class DataManager {
...
@@ -24,7 +24,7 @@ class DataManager {
this
.
log
=
log
;
this
.
log
=
log
;
}
}
async
transaction
(
fun
)
{
async
transaction
(
fun
)
{
const
runner
=
await
this
.
db
.
createQueryRunner
();
const
runner
=
this
.
db
.
createQueryRunner
();
await
runner
.
connect
();
await
runner
.
connect
();
await
runner
.
startTransaction
();
await
runner
.
startTransaction
();
let
result
=
false
;
let
result
=
false
;
...
...
data-manager/DataManager.ts
View file @
f0f7e1fe
...
@@ -47,7 +47,7 @@ export class DataManager {
...
@@ -47,7 +47,7 @@ export class DataManager {
this
.
log
=
log
;
this
.
log
=
log
;
}
}
private
async
transaction
(
fun
:
(
mdb
:
EntityManager
)
=>
Promise
<
boolean
>
)
{
private
async
transaction
(
fun
:
(
mdb
:
EntityManager
)
=>
Promise
<
boolean
>
)
{
const
runner
=
await
this
.
db
.
createQueryRunner
();
const
runner
=
this
.
db
.
createQueryRunner
();
await
runner
.
connect
();
await
runner
.
connect
();
await
runner
.
startTransaction
();
await
runner
.
startTransaction
();
let
result
=
false
;
let
result
=
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