Skip to content
Snippets Groups Projects
Commit 5ce67418 authored by Anton Sattarov's avatar Anton Sattarov :cucumber:
Browse files

fix reference

parent 522011a9
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,8 @@ type Reference struct { ...@@ -14,8 +14,8 @@ type Reference struct {
func (r *Reference) MarshalBSON() ([]byte, error) { func (r *Reference) MarshalBSON() ([]byte, error) {
d := bson.D{ d := bson.D{
{"id", r.ID}, {Key: "id", Value: r.ID},
{"collection_id", r.CollectionID}, {Key: "collection_id", Value: r.CollectionID},
} }
if r.Disabled { if r.Disabled {
...@@ -99,5 +99,4 @@ func (r *Reference) Fetch(i interface{}) interface{} { ...@@ -99,5 +99,4 @@ func (r *Reference) Fetch(i interface{}) interface{} {
default: default:
panic("unknown parameter") panic("unknown parameter")
} }
return nil
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment