Skip to content

Commit

Permalink
chore: unwrap functions
Browse files Browse the repository at this point in the history
  • Loading branch information
KishenKumarrrrr committed Nov 22, 2024
1 parent 2357b7e commit d76e16c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions backend/src/email/routes/email-callback.routes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Router } from 'express'
import { EmailCallbackMiddleware } from '@email/middlewares'
import tracer from 'dd-trace'
const router = Router()
/**
* paths:
Expand All @@ -17,10 +16,7 @@ const router = Router()
*/
router.post(
'/',
tracer.wrap(
'printConfirmSubscription',
() => EmailCallbackMiddleware.printConfirmSubscription
),
EmailCallbackMiddleware.printConfirmSubscription,
EmailCallbackMiddleware.isAuthenticated,
EmailCallbackMiddleware.parseEvent
)
Expand Down

0 comments on commit d76e16c

Please sign in to comment.