Skip to content

Commit

Permalink
Add fallback for API Gateway PayloadFormatResponse 1.0
Browse files Browse the repository at this point in the history
ISSUE: CS-5152, 1145
  • Loading branch information
goran-stamenkovski-logeecom committed Feb 26, 2024
1 parent 82c4385 commit f3751ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion notification/index.lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ export const handler = async (event) => {
}
try {
for (const notification of notificationItems) {
const ctpProjectConfig = getCtpProjectConfig(notification, event.rawPath)
const ctpProjectConfig = getCtpProjectConfig(
notification,
event.rawPath || event.path,
)
const adyenConfig = getAdyenConfig(notification)

await notificationHandler.processNotification(
Expand Down

0 comments on commit f3751ed

Please sign in to comment.