File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import withState from 'helpers/withState'
11
11
import ExpressErrorYup from 'middlewares/ExpressErrorYup'
12
12
import ExpressErrorResponse from 'middlewares/ExpressErrorResponse'
13
13
import ExpressErrorSequelize from 'middlewares/ExpressErrorSequelize'
14
+ import ExpressAutoHandleTransaction from 'middlewares/ExpressAutoHandleTransaction'
14
15
import winstonLogger , { winstonStream } from 'config/winston'
15
16
16
17
const GenerateDoc = require ( 'utils/GenerateDocs' )
@@ -57,6 +58,7 @@ app.use('/v1', handleRollbackTransaction)
57
58
app . use ( '/v1' , ExpressErrorYup )
58
59
app . use ( '/v1' , ExpressErrorSequelize )
59
60
app . use ( '/v1' , ExpressErrorResponse )
61
+ app . use ( ExpressAutoHandleTransaction )
60
62
61
63
// catch 404 and forward to error handler
62
64
app . use ( function ( req : Request , res : Response , next : NextFunction ) {
You can’t perform that action at this time.
0 commit comments