mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
remove migration
This commit is contained in:
parent
a6a904e8c5
commit
e0f3590ead
1 changed files with 1 additions and 17 deletions
|
@ -638,23 +638,7 @@ var migrationsList = {
|
|||
}
|
||||
});
|
||||
return i;
|
||||
},
|
||||
defaultEmailNotificationSettings: function(){
|
||||
var i = 0;
|
||||
Meteor.users.find({'telescope.notifications': {$exists : false}}).forEach(function(user){
|
||||
i++;
|
||||
var defaultNotifications = {
|
||||
users: false,
|
||||
posts: false,
|
||||
comments: true,
|
||||
replies: true
|
||||
};
|
||||
console.log("User: " + user._id);
|
||||
Meteor.users.update(user._id, {$set: { telescope: { notifications: defaultNotifications }}});
|
||||
console.log("---------------------");
|
||||
});
|
||||
return i;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// TODO: normalize categories?
|
||||
|
|
Loading…
Add table
Reference in a new issue