mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): fix for no-uncaught-json-parse warnings
This commit is contained in:
@@ -178,7 +178,7 @@ export class AwsSnsTrigger implements INodeType {
|
||||
const topic = this.getNodeParameter('topic') as string;
|
||||
|
||||
// @ts-ignore
|
||||
const body = JSON.parse(req.rawBody.toString());
|
||||
const body = jsonParse(req.rawBody.toString());
|
||||
|
||||
if (body.Type === 'SubscriptionConfirmation' && body.TopicArn === topic) {
|
||||
const { Token } = body;
|
||||
|
||||
Reference in New Issue
Block a user