From a9fcee9a34eded8f440ad46a013884f0158b68f1 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Sat, 31 Aug 2013 15:57:30 -0400 Subject: [PATCH] Fixing empty BSON id issue --- plugins/factoid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/factoid.go b/plugins/factoid.go index d079184..5198c5f 100644 --- a/plugins/factoid.go +++ b/plugins/factoid.go @@ -19,7 +19,7 @@ import ( // factoid stores info about our factoid for lookup and later interaction type Factoid struct { - Id bson.ObjectId `bson:"_id"` + Id bson.ObjectId `bson:"_id,omitempty"` Idx int Trigger string Operator string