From 7414dff17730c3c62f76a1cd9d3cd8087b0cd456 Mon Sep 17 00:00:00 2001 From: Bob Burningham Date: Mon, 13 Nov 2023 00:12:04 -0800 Subject: [PATCH] fixed messages typo --- app/api/messages/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/messages/route.ts b/app/api/messages/route.ts index 065e04d..69f6178 100644 --- a/app/api/messages/route.ts +++ b/app/api/messages/route.ts @@ -46,7 +46,7 @@ export async function GET( orderBy: { createdAt: "desc", } - }); + }) } else { messages = await db.message.findMany({ take: MESSAGES_BATCH, @@ -63,7 +63,7 @@ export async function GET( orderBy: { createdAt: "desc", } - }) + }); } let nextCursor = null;