[API] Fix bug
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user