mirror of https://github.com/velour/catbase.git
Fixing empty BSON id issue
This commit is contained in:
parent
3a45156b9d
commit
a9fcee9a34
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue