diff --git a/package.json b/package.json index 077df77c5..eae56817b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@staart/manager", - "version": "1.3.35", + "version": "1.3.36", "main": "index.js", "repository": "git@github.com:staart/api.git", "author": "Anand Chowdhary ", @@ -125,5 +125,5 @@ "setup" ], "snyk": true, - "staart-version": "1.3.35" + "staart-version": "1.3.36" } \ No newline at end of file diff --git a/src/helpers/middleware.ts b/src/helpers/middleware.ts index f9ae82709..97806bf8f 100644 --- a/src/helpers/middleware.ts +++ b/src/helpers/middleware.ts @@ -262,7 +262,7 @@ export const validator = ( * Handle Stripe's webhook authentication */ export const stripeWebhookAuthHandler = async ( - req: RawRequest, + req: Request, res: Response, next: NextFunction ) => { @@ -273,7 +273,7 @@ export const stripeWebhookAuthHandler = async ( return res.json(error); } try { - const event = constructWebhookEvent(req.rawBody, signature); + const event = constructWebhookEvent((req as RawRequest).rawBody, signature); (res.locals as StripeLocals).stripeEvent = event; next(); } catch (error) {