From 5c787bbb55fd71edc3d9d2b8889d8e274f5754b3 Mon Sep 17 00:00:00 2001 From: ItzCrazyKns <95534749+ItzCrazyKns@users.noreply.github.com> Date: Sat, 11 Jan 2025 13:10:23 +0530 Subject: [PATCH] feat(app): lint & beautify --- src/websocket/messageHandler.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/websocket/messageHandler.ts b/src/websocket/messageHandler.ts index 8817aae2..395c0def 100644 --- a/src/websocket/messageHandler.ts +++ b/src/websocket/messageHandler.ts @@ -238,7 +238,12 @@ export const handleMessage = async ( } else { await db .delete(messagesSchema) - .where(and(gt(messagesSchema.id, messageExists.id), eq(messagesSchema.chatId, parsedMessage.chatId))) + .where( + and( + gt(messagesSchema.id, messageExists.id), + eq(messagesSchema.chatId, parsedMessage.chatId), + ), + ) .execute(); } } catch (err) {