Fixing empty BSON id issue

This commit is contained in:
Chris Sexton 2013-08-31 15:57:30 -04:00
parent 3a45156b9d
commit a9fcee9a34
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ import (
// factoid stores info about our factoid for lookup and later interaction // factoid stores info about our factoid for lookup and later interaction
type Factoid struct { type Factoid struct {
Id bson.ObjectId `bson:"_id"` Id bson.ObjectId `bson:"_id,omitempty"`
Idx int Idx int
Trigger string Trigger string
Operator string Operator string