From 34cd67e440e9910b41bd9ea964939f7c4c39e190 Mon Sep 17 00:00:00 2001 From: jetsparrow Date: Thu, 22 Apr 2021 16:13:53 +0300 Subject: [PATCH] missed ChatId on replace --- JetHerald/Db.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JetHerald/Db.cs b/JetHerald/Db.cs index 4d36d3a..50b364b 100644 --- a/JetHerald/Db.cs +++ b/JetHerald/Db.cs @@ -146,7 +146,7 @@ namespace JetHerald { using var c = GetConnection(); return c.QueryAsync( - " SELECT tc.ChatId, tc.Service, t.Description, t.ExpiryTime" + + " SELECT tc.Chat, tc.Service, t.Description, t.ExpiryTime" + " FROM topic_chat tc" + " INNER JOIN topic t ON t.TopicId = tc.TopicId" + " WHERE t.ExpiryTime < CURRENT_TIMESTAMP() AND NOT t.ExpiryMessageSent",