From 0fbbecc1d14949769500815c48576995f748a241 Mon Sep 17 00:00:00 2001 From: Bilal Dieumegard Date: Tue, 17 Dec 2024 21:30:07 +0100 Subject: [PATCH] Modification de l'api messages --- src/routes/api/channels/[id]/messages/+server.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/routes/api/channels/[id]/messages/+server.ts b/src/routes/api/channels/[id]/messages/+server.ts index 8aff2fa..82d3aec 100644 --- a/src/routes/api/channels/[id]/messages/+server.ts +++ b/src/routes/api/channels/[id]/messages/+server.ts @@ -140,7 +140,6 @@ export async function POST({ params, request }) { let channels = cachedChannels ? JSON.parse(cachedChannels) : []; let channel = channels.find((c) => c.id === channelId); if(channel){ - console.log('channel found') channel.lastMessage = { id: newMessage.id, text: newMessage.text,