From e757fcaf8d647235ce0f42f9cf6077ea0c53f2b5 Mon Sep 17 00:00:00 2001 From: Minh Nguyen <64875104+MinhxNguyen7@users.noreply.github.com> Date: Mon, 3 Jun 2024 01:19:57 -0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20serialize=20meeting=20input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/db/databaseUtils.server.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/db/databaseUtils.server.ts b/src/lib/db/databaseUtils.server.ts index 9275b80..fb1e94e 100644 --- a/src/lib/db/databaseUtils.server.ts +++ b/src/lib/db/databaseUtils.server.ts @@ -119,8 +119,9 @@ export const insertMeeting = async (meeting: MeetingInsertSchema, meetingDates: try { [dbMeeting] = await db.insert(meetings).values(meeting).returning(); } catch (err) { - console.error("Error inserting meeting=", meeting); - throw Error(`Error inserting meeting=${meeting}`); + const meetingSerialized = JSON.stringify(meeting); + console.error("Error inserting meeting=", meetingSerialized); + throw Error(`Error inserting meeting=${meetingSerialized}`); } await insertMeetingDates(meetingDates, dbMeeting.id);