1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-02 00:38:14 +09:00
This commit is contained in:
syuilo 2018-05-13 16:52:47 +09:00
parent 7af9ad9869
commit 219fdecc50

View File

@ -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) {