From b0e1957ec8f62c1d196b92c954769d33310d40d0 Mon Sep 17 00:00:00 2001 From: jetsparrow Date: Thu, 22 Apr 2021 16:25:08 +0300 Subject: [PATCH] shameful SQL fix --- JetHerald/Db.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JetHerald/Db.cs b/JetHerald/Db.cs index 50b364b..7cf4960 100644 --- a/JetHerald/Db.cs +++ b/JetHerald/Db.cs @@ -146,7 +146,7 @@ namespace JetHerald { using var c = GetConnection(); return c.QueryAsync( - " SELECT tc.Chat, tc.Service, t.Description, t.ExpiryTime" + + " SELECT tc.Chat, 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",