mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Fix bug
This commit is contained in:
parent
69ac0da456
commit
b8210d42f0
1 changed files with 2 additions and 1 deletions
|
@ -116,7 +116,8 @@ async function deleteOldFile(user: IRemoteUser) {
|
||||||
const oldFile = await DriveFile.findOne({
|
const oldFile = await DriveFile.findOne({
|
||||||
_id: {
|
_id: {
|
||||||
$nin: [user.avatarId, user.bannerId]
|
$nin: [user.avatarId, user.bannerId]
|
||||||
}
|
},
|
||||||
|
'metadata.userId': user._id
|
||||||
}, {
|
}, {
|
||||||
sort: {
|
sort: {
|
||||||
_id: 1
|
_id: 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue