Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(RazorpayHooks): convert req.body buffer to type string #29

Conversation

mittalyashu
Copy link

Closes #28

@@ -23,9 +23,7 @@ export default async (req, res) => {
res.sendStatus(400);
return;
}
data = _.isObject(req.body)
? req.body?.data?.toString()
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SGFGOV any particular reason for you to use req.body.data to access the data.

Or was this due to backward compatibility.

@mittalyashu mittalyashu deleted the fix/cannot-read-sub-property-events branch November 28, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: Cannot read properties of undefined (reading 'event')
1 participant