fix(server): stats APIで内部エラーが発生する問題を修正

Fix #8308
This commit is contained in:
syuilo 2022-02-12 17:33:29 +09:00
parent 642a51a558
commit 2de4978a31
2 changed files with 4 additions and 3 deletions

View File

@ -16,6 +16,7 @@ You should also include the user name that made the change.
- クライアント: テーマを追加 @syuilo
### Bugfixes
- API: stats APIで内部エラーが発生する問題を修正 @syuilo
- クライアント: ソフトミュートですべてがマッチしてしまう場合があるのを修正 @tamaina
- クライアント: デバイスのスクリーンのセーフエリアを考慮するように @syuilo
- クライアント: 一部環境でサイドバーの投稿ボタンが表示されない問題を修正 @syuilo

View File

@ -1,6 +1,6 @@
import define from '../define';
import { NoteReactions, Notes, Users } from '@/models/index';
import { federationChart, driveChart } from '@/services/chart/index';
import { Instances, NoteReactions, Notes, Users } from '@/models/index';
import { } from '@/services/chart/index';
export const meta = {
requireCredential: false,
@ -63,7 +63,7 @@ export default define(meta, async () => {
Users.count({ where: { host: null }, cache: 3600000 }),
NoteReactions.count({ cache: 3600000 }), // 1 hour
//NoteReactions.count({ where: { userHost: null }, cache: 3600000 }),
federationChart.getChart('hour', 1, null).then(chart => chart.instance.total[0]),
Instances.count({ cache: 3600000 }),
]);
return {