db reformat again

This commit is contained in:
catarak 2016-09-14 16:24:51 -04:00
parent 8bf252ed87
commit 90c55e9e0b

View file

@ -87,7 +87,7 @@ Project.find({})
.exec((err, projects) => { .exec((err, projects) => {
projects.forEach((project, projectIndex) => { projects.forEach((project, projectIndex) => {
project.files.forEach((file) => { project.files.forEach((file) => {
if (file.isSelected === true || file.isSelected === false) { if (file.isSelected) {
file.isSelectedFile = file.isSelected; file.isSelectedFile = file.isSelected;
delete file.isSelected; delete file.isSelected;
console.log(file); console.log(file);