fix query fields returned.

This commit is contained in:
fiatjaf
2022-01-02 18:32:55 -03:00
parent b0467795cd
commit ed829ac5f8

View File

@@ -136,7 +136,9 @@ func (b *BasicRelay) QueryEvents(
conditions = append(conditions, "true")
}
query := b.DB.Rebind("SELECT * FROM event WHERE " +
query := b.DB.Rebind(`SELECT
id, pubkey, created_at, kind, tags, content, sig
FROM event WHERE ` +
strings.Join(conditions, " AND ") +
" ORDER BY created_at LIMIT 100")