fix: Listen to payment webhooks

This commit is contained in:
Ahmed Bouhuolia
2024-08-24 18:50:12 +02:00
parent bf66b31679
commit 278d61ce61
10 changed files with 221 additions and 22 deletions

View File

@@ -35,7 +35,7 @@ export class Webhooks extends BaseController {
*/
public async lemonWebhooks(req: Request, res: Response, next: NextFunction) {
const data = req.body;
const signature = req.headers['x-signature'] ?? '';
const signature = req.headers['x-signature'] as string ?? '';
const rawBody = req.rawBody;
try {