mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
Fix bug
This commit is contained in:
parent
7e37873045
commit
9cdf8f1fe6
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@ export default async (params: any, user: ILocalUser) => {
|
|||
const file = await DriveFile
|
||||
.findOne({
|
||||
_id: fileId,
|
||||
'metadata.userId': user._id
|
||||
'metadata.userId': user._id,
|
||||
'metadata.deletedAt': { $exists: false }
|
||||
});
|
||||
|
||||
if (file === null) {
|
||||
|
|
Loading…
Reference in a new issue