Skip to content

Commit 1b6da46

Browse files
committed
fix: import auto handle transaction
1 parent 4762b84 commit 1b6da46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/app.ts

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import withState from 'helpers/withState'
1111
import ExpressErrorYup from 'middlewares/ExpressErrorYup'
1212
import ExpressErrorResponse from 'middlewares/ExpressErrorResponse'
1313
import ExpressErrorSequelize from 'middlewares/ExpressErrorSequelize'
14+
import ExpressAutoHandleTransaction from 'middlewares/ExpressAutoHandleTransaction'
1415
import winstonLogger, { winstonStream } from 'config/winston'
1516

1617
const GenerateDoc = require('utils/GenerateDocs')
@@ -57,6 +58,7 @@ app.use('/v1', handleRollbackTransaction)
5758
app.use('/v1', ExpressErrorYup)
5859
app.use('/v1', ExpressErrorSequelize)
5960
app.use('/v1', ExpressErrorResponse)
61+
app.use(ExpressAutoHandleTransaction)
6062

6163
// catch 404 and forward to error handler
6264
app.use(function (req: Request, res: Response, next: NextFunction) {

0 commit comments

Comments
 (0)