From ed829ac5f809b082cde798451816fa21f532c181 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 2 Jan 2022 18:32:55 -0300 Subject: [PATCH] fix query fields returned. --- basic/query.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/basic/query.go b/basic/query.go index 933ddb6..d11e4c7 100644 --- a/basic/query.go +++ b/basic/query.go @@ -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")