Skip to content
Snippets Groups Projects
Commit 219fdecc authored by syuilo's avatar syuilo
Browse files

Fix bug

parent 7af9ad98
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,8 @@ const addFile = async (
// Check if there is a file with the same hash
const much = await DriveFile.findOne({
md5: hash,
'metadata.userId': user._id
'metadata.userId': user._id,
deletedAt: { $exists: false }
});
if (much !== null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment