1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-10-31 23:31:48 +09:00
This commit is contained in:
syuilo 2018-08-25 10:28:09 +09:00
parent 94ba9c8437
commit 4e8033d5a4

View File

@ -116,7 +116,8 @@ async function deleteOldFile(user: IRemoteUser) {
const oldFile = await DriveFile.findOne({
_id: {
$nin: [user.avatarId, user.bannerId]
}
},
'metadata.userId': user._id
}, {
sort: {
_id: 1