mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 18:23:08 +02:00
Update add-file.ts
This commit is contained in:
parent
f5d2cb5c61
commit
1641d6bce2
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ const addFile = async (
|
||||||
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 }
|
'metadata.deletedAt': { $exists: false }
|
||||||
});
|
});
|
||||||
|
|
||||||
if (much !== null) {
|
if (much !== null) {
|
||||||
|
|
Loading…
Reference in a new issue