1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-15 17:50:55 +00:00

Count capitalization

This commit is contained in:
Philipp Heckel 2021-11-29 11:48:34 -05:00
parent ccccae9aad
commit e3debf4315

View file

@ -34,7 +34,7 @@ const (
ORDER BY time ASC
`
selectMessagesCountQuery = `SELECT COUNT(*) FROM messages`
selectMessageCountForTopicQuery = `SELECT count(*) FROM messages WHERE topic = ?`
selectMessageCountForTopicQuery = `SELECT COUNT(*) FROM messages WHERE topic = ?`
selectTopicsQuery = `SELECT topic, MAX(time) FROM messages GROUP BY topic`
)