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(*) COUNT(*)
FROM event WHERE `+ FROM event WHERE `+
strings.Join(conditions, " AND ")+ strings.Join(conditions, " AND ")+
" ORDER BY created_at DESC LIMIT ?") " LIMIT ?")
} else { } else {
query = sqlx.Rebind(sqlx.BindType("mysql"), `SELECT query = sqlx.Rebind(sqlx.BindType("mysql"), `SELECT
id, pubkey, created_at, kind, tags, content, sig id, pubkey, created_at, kind, tags, content, sig