-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.9.2
-
Component/s: Operations
-
Environment:MongoDB 3.2.1 under Ubuntu 15.10
Hi, I think there's a problem in .Upsert().UpdateOne().
When you filter documents created today, using "created_on", it will always insert a new document instead of update the desired field.
Short code:
http://pastebin.com/jT0cpdGg