diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-05-13 16:52:47 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-05-13 16:52:47 +0900 |
| commit | 219fdecc50aea9ee6c978799cdc8cb37bcc69200 (patch) | |
| tree | acd57805a3d4b98c3136087b36468f831d065ec6 /src/services | |
| parent | Better error handling (diff) | |
| download | sharkey-219fdecc50aea9ee6c978799cdc8cb37bcc69200.tar.gz sharkey-219fdecc50aea9ee6c978799cdc8cb37bcc69200.tar.bz2 sharkey-219fdecc50aea9ee6c978799cdc8cb37bcc69200.zip | |
Fix bug
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/drive/add-file.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/services/drive/add-file.ts b/src/services/drive/add-file.ts index 8b54330787..f5a2bad56c 100644 --- a/src/services/drive/add-file.ts +++ b/src/services/drive/add-file.ts @@ -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) { |