[API] Fix bug

This commit is contained in:
syuilo
2017-02-09 01:37:50 +09:00
parent 12811d6056
commit 7435dfcacf
3 changed files with 9 additions and 3 deletions

View File

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