From b8210d42f0db8ac944e7c01a6c0be80f84f051e1 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 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 From feecb00b9ba83d9709293bcbae20f358b0627b72 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 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",