gob.Register 누락
This commit is contained in:
@ -2,6 +2,7 @@ package core
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"encoding/gob"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
@ -63,6 +64,11 @@ type partyDoc struct {
|
|||||||
id groupID
|
id groupID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
gob.Register(partyDoc{})
|
||||||
|
gob.Register(Invitation{})
|
||||||
|
}
|
||||||
|
|
||||||
func (gd *partyDoc) loadMemberFull(tid string) (bson.M, error) {
|
func (gd *partyDoc) loadMemberFull(tid string) (bson.M, error) {
|
||||||
full, err := gd.rh.JSONGet(gd.strid(), "$._members."+tid)
|
full, err := gd.rh.JSONGet(gd.strid(), "$._members."+tid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user