📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
y
Blue Mouse1c217c737b42
diff --git a/package.json b/package.jsonindex d4da09ce9..86204452b 100644--- a/package.json+++ b/package.json@@ -52,7 +52,7 @@"nodemailer": "^6.7.2","passport": "^0.4.1","passport-jwt": "^4.0.0",- "querystring": "^0.2.1",+ "query-string": "^7.1.0","reflect-metadata": "^0.1.13","rimraf": "^3.0.2","rxjs": "^7.5.1",diff --git a/src/webhook/webhook.controller.ts b/src/webhook/webhook.controller.tsindex 4261d0baa..fdc233239 100644--- a/src/webhook/webhook.controller.ts+++ b/src/webhook/webhook.controller.ts@@ -1,7 +1,7 @@import {Controller, Body, Post, Headers, BadRequestException, NotFoundException, UseGuards, Ip,} from '@nestjs/common'-import * as querystring from 'querystring'+import * as querystring from 'query-string'import { ApiTags } from '@nestjs/swagger'import * as _isEmpty from 'lodash/isEmpty'import * as _keys from 'lodash/keys'@@ -136,7 +136,7 @@ export class WebhookController {async paddleWebhook(@Body() body, @Headers() headers, @Ip() reqIP): Promise<any> {const ip = headers['cf-connecting-ip'] || headers['x-forwarded-for'] || reqIP || ''const webhookData = querystring.parse(body)- console.log(webhookData)+ console.log(webhookData, webhookData.toString(), querystring.stringify(body))if (verifyPaddleWebhook(PADDLE_PUB_KEY, webhookData)) {console.log(headers, ip)