summaryrefslogtreecommitdiff
path: root/src/server/api
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-08-25 11:11:00 +0900
committerGitHub <noreply@github.com>2018-08-25 11:11:00 +0900
commitc7c3f6999b40ec0a576c5537f02a8025ef7e6acd (patch)
tree6d644734a10ff5e7725feeb6789fc03c1063c2ba /src/server/api
parentMerge pull request #2464 from syuilo/develop (diff)
parent8.9.2 (diff)
downloadmisskey-c7c3f6999b40ec0a576c5537f02a8025ef7e6acd.tar.gz
misskey-c7c3f6999b40ec0a576c5537f02a8025ef7e6acd.tar.bz2
misskey-c7c3f6999b40ec0a576c5537f02a8025ef7e6acd.zip
Merge pull request #2465 from syuilo/develop
8.9.2
Diffstat (limited to 'src/server/api')
-rw-r--r--src/server/api/endpoints/chart.ts18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/server/api/endpoints/chart.ts b/src/server/api/endpoints/chart.ts
index 514bacaa84..406ad39946 100644
--- a/src/server/api/endpoints/chart.ts
+++ b/src/server/api/endpoints/chart.ts
@@ -4,7 +4,23 @@ type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
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;