This commit is contained in:
syuilo
2017-01-17 11:11:22 +09:00
parent caa8aee7a0
commit 9f81288fcc
48 changed files with 91 additions and 140 deletions

View File

@@ -39,8 +39,7 @@ module.exports = (params, user) =>
folder_id: folder
}, {
data: false
})
.toArray();
});
// Serialize
res(await Promise.all(files.map(async file =>

View File

@@ -74,9 +74,7 @@ module.exports = (params, user) =>
}
}
DriveFile.updateOne({ _id: file._id }, {
$set: file
});
DriveFile.update(file._id, file);
// Serialize
const fileObj = await serialize(file);