Skip to content

Commit

Permalink
Mustache.escape fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prakash100198 committed Oct 8, 2024
1 parent bc18175 commit 86b265e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/destination/destinationHandlers/sesHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ export class SESService implements Handler {
if(event.eventTypeId===4 || event.eventTypeId === EVENT_TYPE.ImagePromotion){
let commentDisplayStyle = (event.payload.imageComment === "") ? 'none' : 'inline';
let tagDisplayStyle = (event.payload.imageTagNames === null) ? 'none' : 'inline';
json = Mustache.render(Mustache.escape(template), { ...parsedEvent, commentDisplayStyle ,tagDisplayStyle});
json = Mustache.render(template, { ...parsedEvent, commentDisplayStyle ,tagDisplayStyle});
}else if(event.eventTypeId===5){
let commentDisplayStyle = (event.payload.protectConfigComment === "") ? 'none' : 'inline';
json = Mustache.render(Mustache.escape(template), { ...parsedEvent, commentDisplayStyle });
json = Mustache.render(template, { ...parsedEvent, commentDisplayStyle });
}
else{
json = Mustache.render(Mustache.escape(template), parsedEvent)
json = Mustache.render(template, parsedEvent)
}

const res = await sdk.send(
Expand Down

0 comments on commit 86b265e

Please sign in to comment.