mirror of
https://github.com/Jetsparrow/jetherald.git
synced 2026-01-21 07:56:09 +03:00
shameful SQL fix
This commit is contained in:
parent
34cd67e440
commit
b0e1957ec8
@ -146,7 +146,7 @@ namespace JetHerald
|
|||||||
{
|
{
|
||||||
using var c = GetConnection();
|
using var c = GetConnection();
|
||||||
return c.QueryAsync<ExpiredTopicChat>(
|
return c.QueryAsync<ExpiredTopicChat>(
|
||||||
" SELECT tc.Chat, tc.Service, t.Description, t.ExpiryTime" +
|
" SELECT tc.Chat, t.Description, t.ExpiryTime" +
|
||||||
" FROM topic_chat tc" +
|
" FROM topic_chat tc" +
|
||||||
" INNER JOIN topic t ON t.TopicId = tc.TopicId" +
|
" INNER JOIN topic t ON t.TopicId = tc.TopicId" +
|
||||||
" WHERE t.ExpiryTime < CURRENT_TIMESTAMP() AND NOT t.ExpiryMessageSent",
|
" WHERE t.ExpiryTime < CURRENT_TIMESTAMP() AND NOT t.ExpiryMessageSent",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user