mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 19:43:32 +00:00
Fix bug
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user