Fix bug
This commit is contained in:
@@ -39,8 +39,7 @@ module.exports = (params, user) =>
|
||||
folder_id: folder
|
||||
}, {
|
||||
data: false
|
||||
})
|
||||
.toArray();
|
||||
});
|
||||
|
||||
// Serialize
|
||||
res(await Promise.all(files.map(async 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);
|
||||
|
Reference in New Issue
Block a user