From 8b92ce06ffb473257cb7960c3daf438447f02c01 Mon Sep 17 00:00:00 2001 From: Ayrat Hudaygulov Date: Thu, 30 Nov 2023 10:25:45 +0000 Subject: [PATCH] fix incorrect SQL --- src/VahterBanBot/DB.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VahterBanBot/DB.fs b/src/VahterBanBot/DB.fs index 9742435..7e64a5a 100644 --- a/src/VahterBanBot/DB.fs +++ b/src/VahterBanBot/DB.fs @@ -86,7 +86,7 @@ let deleteMsgs (msg: DbMessage[]): Task = use conn = new NpgsqlConnection(connString) //language=postgresql - let sql = "DELETE FROM message WHERE message_id IN @msgIds" + let sql = "DELETE FROM message WHERE message_id = ANY(@msgIds)" return! conn.ExecuteAsync(sql, {| msgIds = msgIds |}) }