mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-07 17:23:54 +09:00
Fix bug
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user