mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 22:03:08 +02:00
Fix bug
This commit is contained in:
parent
7af9ad9869
commit
219fdecc50
1 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,8 @@ const addFile = async (
|
||||||
// Check if there is a file with the same hash
|
// Check if there is a file with the same hash
|
||||||
const much = await DriveFile.findOne({
|
const much = await DriveFile.findOne({
|
||||||
md5: hash,
|
md5: hash,
|
||||||
'metadata.userId': user._id
|
'metadata.userId': user._id,
|
||||||
|
deletedAt: { $exists: false }
|
||||||
});
|
});
|
||||||
|
|
||||||
if (much !== null) {
|
if (much !== null) {
|
||||||
|
|
Loading…
Reference in a new issue