mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
change $push to $addToSet for monthly mystery items so that we can't get duplicates being added. Ref: https://gist.github.com/lefnire/a0a93c52211f44a2c087 and http://stackoverflow.com/questions/27248556/mongodb-difference-between-push-addtoset
This commit is contained in:
parent
a07f8572b0
commit
68c4547c0a
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
var _id = '';
|
||||
var update = {
|
||||
$push: {
|
||||
$addToSet: {
|
||||
'purchased.plan.mysteryItems':{
|
||||
$each:['armor_mystery_201504','back_mystery_201504']
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue