diff --git a/events/events.go b/events/events.go index 1d6b408..e0ed450 100644 --- a/events/events.go +++ b/events/events.go @@ -10,12 +10,12 @@ import ( ) type Event struct { + ID string `json:"id"` + PubKey string `json:"pubkey"` CreatedAt int64 `json:"created_at"` Kind int `json:"kind"` - Content string `json:"content"` Tags []string `json:"tags"` - PubKey string `json:"pubkey"` - ID string `json:"id"` + Content string `json:"content"` Sig string `json:"sig"` } diff --git a/server/server.go b/server/server.go index 4813acd..340a213 100644 --- a/server/server.go +++ b/server/server.go @@ -146,7 +146,7 @@ func handleReq(ws *websocket.Conn, message []interface{}) { fmt.Println("Subscription added:", subID) // Query the database with filters and send back the results - events, err := QueryEvents(filters, client, "grain", "event-kind0") + events, err := QueryEvents(filters, client, "grain", "event-kind1") if err != nil { fmt.Println("Error querying events:", err) return