[API] Fix bug
This commit is contained in:
parent
12811d6056
commit
7435dfcacf
3 changed files with 9 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue