This commit is contained in:
Yasuhiro Matsumoto
2024-07-12 11:59:54 +09:00
parent 73788e0907
commit 763abc00ff

View File

@@ -154,7 +154,7 @@ func (b MySQLBackend) queryEventsSql(filter nostr.Filter, doCount bool) (string,
COUNT(*)
FROM event WHERE `+
strings.Join(conditions, " AND ")+
" ORDER BY created_at DESC LIMIT ?")
" LIMIT ?")
} else {
query = sqlx.Rebind(sqlx.BindType("mysql"), `SELECT
id, pubkey, created_at, kind, tags, content, sig