From 4e8033d5a40f0908b37bf679b0cd823d0393459f Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 25 Aug 2018 10:28:09 +0900 Subject: [PATCH 1/2] Fix bug --- src/services/drive/add-file.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/drive/add-file.ts b/src/services/drive/add-file.ts index a60d1acbbe..1da0f49a24 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 From d7fa92d58f11fed0a4aeaf4e72edf04f5e0c65d3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 25 Aug 2018 10:28:28 +0900 Subject: [PATCH 2/2] 8.9.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 32cafda27d..16d4637d73 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",