From ef57f5907b115b8047e798f7486bb9ee73d465aa Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 25 Aug 2018 11:10:27 +0900 Subject: [PATCH 1/2] Fix bug --- src/server/api/endpoints/chart.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/server/api/endpoints/chart.ts b/src/server/api/endpoints/chart.ts index 514bacaa8..406ad3994 100644 --- a/src/server/api/endpoints/chart.ts +++ b/src/server/api/endpoints/chart.ts @@ -4,7 +4,23 @@ type Omit = Pick>; function migrateStats(stats: IStats[]) { stats.forEach(stat => { - const isOldData = stat.users.local.inc == null; + const isOldData = + stat.users.local.inc == null || + stat.users.local.dec == null || + stat.users.remote.inc == null || + stat.users.remote.dec == null || + stat.notes.local.inc == null || + stat.notes.local.dec == null || + stat.notes.remote.inc == null || + stat.notes.remote.dec == null || + stat.drive.local.incCount == null || + stat.drive.local.decCount == null || + stat.drive.local.incSize == null || + stat.drive.local.decSize == null || + stat.drive.remote.incCount == null || + stat.drive.remote.decCount == null || + stat.drive.remote.incSize == null || + stat.drive.remote.decSize == null; if (!isOldData) return; From fb4aa9bc1ceafc216602f2fac32af83094c54b6f Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 25 Aug 2018 11:10:38 +0900 Subject: [PATCH 2/2] 8.9.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 16d4637d7..484051d7b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "misskey", "author": "syuilo ", - "version": "8.9.1", + "version": "8.9.2", "clientVersion": "1.0.8950", "codename": "nighthike", "main": "./built/index.js",