From 7430b674f01ba2a04cfa568987fc8d5207240095 Mon Sep 17 00:00:00 2001 From: 0ceanSlim Date: Thu, 22 Aug 2024 13:03:33 -0400 Subject: [PATCH] added bson to event type --- server/types/event.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/server/types/event.go b/server/types/event.go index 99d06f7..03bbce0 100644 --- a/server/types/event.go +++ b/server/types/event.go @@ -1,11 +1,11 @@ package relay type Event struct { - ID string `json:"id"` - PubKey string `json:"pubkey"` - CreatedAt int64 `json:"created_at"` - Kind int `json:"kind"` - Tags [][]string `json:"tags"` - Content string `json:"content"` - Sig string `json:"sig"` -} + ID string `json:"id" bson:"id"` + PubKey string `json:"pubkey" bson:"pubkey"` + CreatedAt int64 `json:"created_at" bson:"created_at"` + Kind int `json:"kind" bson:"kind"` + Tags [][]string `json:"tags" bson:"tags"` + Content string `json:"content" bson:"content"` + Sig string `json:"sig" bson:"sig"` +} \ No newline at end of file