fix: 30 days clean message

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong0618
2025-07-09 20:09:49 +08:00
parent 5250c89811
commit e7700481de

View File

@ -154,7 +154,7 @@ class MessageStore:
]
def _clean_old_messages(
self, chat_id: int, conn: sqlite3.Connection, days: int = 7
self, chat_id: int, conn: sqlite3.Connection, days: int = 30
) -> None:
cursor = conn.cursor()
threshold_date = datetime.now(tz=timezone.utc) - timedelta(days=days)