Skip to content

Commit

Permalink
fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeDan committed Jun 24, 2024
1 parent d70fc43 commit 1391af0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/repositories/eventRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const createEvent = async (data: EventWithoutId): Promise<Event> => {
*/
export const readEvent = async (
id: number,
): Promise<eventWithUserEvents | null> => {
): Promise<EventWithUserEvents | null> => {
return await prisma.event.findUnique({
where: { id },
include: {
Expand All @@ -45,7 +45,7 @@ export const readEvents = async (): Promise<Event[] | null> => {
*/
export const updateEvent = async (
id: number,
data: Event,
data: EventWithoutId,
): Promise<Event | null> => {
return await prisma.event.update({
where: { id },
Expand Down

0 comments on commit 1391af0

Please sign in to comment.