Skip to content

Commit

Permalink
fix: remove upsert
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI committed Apr 18, 2024
1 parent 30ceba9 commit ec43cb7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions api/src/controllers/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,9 @@ router.post(

if (action === "APP_OPEN") {
const appVersion = req.headers.appversion;
await prisma.user.upsert({
await prisma.user.update({
where: { matomo_id: matomoId },
create: {
matomo_id: matomoId,
appVersion: appVersion,
created_from: "AppOpen",
},
update: {
data: {
appVersion: appVersion,
},
});
Expand Down

0 comments on commit ec43cb7

Please sign in to comment.