Create transaction for JSONRPC middleware
This commit is contained in:
parent
9cc5a7affb
commit
5b9f4b9321
@ -116,6 +116,10 @@ export class Application implements IApplication {
|
|||||||
return jsonrpc(
|
return jsonrpc(
|
||||||
req => ({user: req.user}),
|
req => ({user: req.user}),
|
||||||
this.getApiLogger(),
|
this.getApiLogger(),
|
||||||
|
(path, service, callback) => this
|
||||||
|
.database
|
||||||
|
.transactionManager
|
||||||
|
.doInNewTransaction(() => callback()),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user