Skip to content

Commit

Permalink
fix incorrect SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
Szer committed Nov 30, 2023
1 parent 48e2746 commit 8b92ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VahterBanBot/DB.fs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ let deleteMsgs (msg: DbMessage[]): Task<int> =
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 |})
}

Expand Down

0 comments on commit 8b92ce0

Please sign in to comment.