Skip to content

Commit

Permalink
fix: remove test alert
Browse files Browse the repository at this point in the history
  • Loading branch information
tangimds committed Jul 21, 2022
1 parent d05ee11 commit c54777b
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions api/src/controllers/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,28 @@ router.post(
// if (body.event?.category === "IN_APP_CLICK" && body.event?.action === "COMMENT_CLICK") {
// return res.status(200).send({ ok: true });
// }
if (body.event?.category === "OPEN_TAB" && body.event?.action === "CALENDAR_OPEN") {
return res.status(200).send({
ok: true,
sendInApp: [
"Bienvenue dans les analyses !",
"Vous pourrez voir ici les mesures de vos saisies quotidiennes.",
// [
// {
// text: "Pourquoi ?",
// navigate: ["HEALTH"],
// },
// {
// text: "Comment ?",
// navigate: ["CONSO_FOLLOW_UP"],
// style: "destructive",
// event: { category: "IN_APP_CLICK", action: "COMMENT_CLICK" },
// },
// ],
// { cancelable: true },
],
});
}
// if (body.event?.category === "OPEN_TAB" && body.event?.action === "CALENDAR_OPEN") {
// return res.status(200).send({
// ok: true,
// sendInApp: [
// "Bienvenue dans les analyses !",
// "Vous pourrez voir ici les mesures de vos saisies quotidiennes.",
// // [
// // {
// // text: "Pourquoi ?",
// // navigate: ["HEALTH"],
// // },
// // {
// // text: "Comment ?",
// // navigate: ["CONSO_FOLLOW_UP"],
// // style: "destructive",
// // event: { category: "IN_APP_CLICK", action: "COMMENT_CLICK" },
// // },
// // ],
// // { cancelable: true },
// ],
// });
// }
return res.status(200).send({ ok: true });
})
);
Expand Down

0 comments on commit c54777b

Please sign in to comment.