mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-12 12:40:54 +01:00
commit
eff44f9cd1
2 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"author": "syuilo <i@syuilo.com>",
|
"author": "syuilo <i@syuilo.com>",
|
||||||
"version": "8.9.0",
|
"version": "8.9.1",
|
||||||
"clientVersion": "1.0.8950",
|
"clientVersion": "1.0.8950",
|
||||||
"codename": "nighthike",
|
"codename": "nighthike",
|
||||||
"main": "./built/index.js",
|
"main": "./built/index.js",
|
||||||
|
|
|
@ -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…
Reference in a new issue