Skip to content

Commit

Permalink
fix: RECOSANTE-API-NODE-1D
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudambro committed Mar 11, 2024
1 parent f21ef15 commit 888fdee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api-node/src/controllers/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ router.post(
catchErrors(async (req: RequestWithMatomoEvent, res: express.Response) => {
const event = req.body.event;

if (!req.body.userId) {
res.status(200).send({ ok: true });
return;
}

if (
event.category === 'STORE_REVIEW' &&
event.action === 'TRIGGERED_FROM_SETTINGS'
Expand Down

0 comments on commit 888fdee

Please sign in to comment.