From 7b2aa046bd5abf723bad5dcf81aba641038899e7 Mon Sep 17 00:00:00 2001 From: mountain Date: Wed, 14 Feb 2024 18:18:02 +0900 Subject: [PATCH] =?UTF-8?q?gob.Register=20=EB=88=84=EB=9D=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/group_party.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/group_party.go b/core/group_party.go index 3de416f..b50f530 100644 --- a/core/group_party.go +++ b/core/group_party.go @@ -2,6 +2,7 @@ package core import ( "context" + "encoding/gob" "encoding/json" "fmt" "net/http" @@ -63,6 +64,11 @@ type partyDoc struct { id groupID } +func init() { + gob.Register(partyDoc{}) + gob.Register(Invitation{}) +} + func (gd *partyDoc) loadMemberFull(tid string) (bson.M, error) { full, err := gd.rh.JSONGet(gd.strid(), "$._members."+tid) if err != nil {