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) {