diff --git a/package.json b/package.json index 32cafda27..16d4637d7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "misskey", "author": "syuilo ", - "version": "8.9.0", + "version": "8.9.1", "clientVersion": "1.0.8950", "codename": "nighthike", "main": "./built/index.js", diff --git a/src/services/drive/add-file.ts b/src/services/drive/add-file.ts index a60d1acbb..1da0f49a2 100644 --- a/src/services/drive/add-file.ts +++ b/src/services/drive/add-file.ts @@ -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