From cfbcea75a2fc9bb2787b6305ce50dadebdbed227 Mon Sep 17 00:00:00 2001 From: arily Date: Mon, 4 Dec 2023 01:28:09 +0900 Subject: [PATCH] fixup --- app/repositories/mails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/repositories/mails.py b/app/repositories/mails.py index 3ac8a677..45b00597 100644 --- a/app/repositories/mails.py +++ b/app/repositories/mails.py @@ -87,7 +87,7 @@ async def fetch_count( WHERE COALESCE(from_id = :from_id, :from_id IS NULL) AND COALESCE(to_id = :to_id, :to_id IS NULL) AND COALESCE(time = :time, :time IS NULL) - AND `read` = COALESCE(:read, read) + AND COALESCE(`read` = :read, :read IS NULL) """ params = { "from_id": from_id,