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 {
func (r *Reference) MarshalBSON() ([]byte, error) {
d := bson.D{
{"id", r.ID},
{"collection_id", r.CollectionID},
{Key: "id", Value: r.ID},
{Key: "collection_id", Value: r.CollectionID},
}
if r.Disabled {
......@@ -99,5 +99,4 @@ func (r *Reference) Fetch(i interface{}) interface{} {
default:
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