From 1391af01bdf2ca6851fecec55d7f46c40b264b95 Mon Sep 17 00:00:00 2001 From: Maxime Dandel Date: Mon, 24 Jun 2024 09:34:00 +0200 Subject: [PATCH] fix merge error --- src/repositories/eventRepository.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repositories/eventRepository.ts b/src/repositories/eventRepository.ts index 4158bd7..727e531 100644 --- a/src/repositories/eventRepository.ts +++ b/src/repositories/eventRepository.ts @@ -20,7 +20,7 @@ export const createEvent = async (data: EventWithoutId): Promise => { */ export const readEvent = async ( id: number, -): Promise => { +): Promise => { return await prisma.event.findUnique({ where: { id }, include: { @@ -45,7 +45,7 @@ export const readEvents = async (): Promise => { */ export const updateEvent = async ( id: number, - data: Event, + data: EventWithoutId, ): Promise => { return await prisma.event.update({ where: { id },