mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Remove local migration change
This commit is contained in:
parent
ba0e7cec52
commit
083dd1d850
1 changed files with 1 additions and 2 deletions
|
@ -412,9 +412,8 @@ var migrationsList = {
|
|||
i++;
|
||||
console.log("Post: " + post._id);
|
||||
var justCategoryIds = post.categories.map(function (category){
|
||||
return category && category._id;
|
||||
return category._id;
|
||||
});
|
||||
justCategoryIds = _.reject(justCategoryIds, function(id) { return id === null; });
|
||||
var result = Posts.update(post._id, {$set: {categories: justCategoryIds, oldCategories: post.categories}}, {multi: true, validate: false});
|
||||
console.log("---------------------");
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue