diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-10-21 15:08:07 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-10-21 15:08:07 +0900 |
| commit | 6b0d48423d249b386d2428b46a14dea76bf231e9 (patch) | |
| tree | 897a457276ed744938ec132ab1ad9d086267f436 /src/server/api/endpoints/charts/notes.ts | |
| parent | Refactor (diff) | |
| download | misskey-6b0d48423d249b386d2428b46a14dea76bf231e9.tar.gz misskey-6b0d48423d249b386d2428b46a14dea76bf231e9.tar.bz2 misskey-6b0d48423d249b386d2428b46a14dea76bf231e9.zip | |
Refactor
Diffstat (limited to 'src/server/api/endpoints/charts/notes.ts')
| -rw-r--r-- | src/server/api/endpoints/charts/notes.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/charts/notes.ts b/src/server/api/endpoints/charts/notes.ts index 1efd587519..06ed3b7d41 100644 --- a/src/server/api/endpoints/charts/notes.ts +++ b/src/server/api/endpoints/charts/notes.ts @@ -1,6 +1,6 @@ import $ from 'cafy'; import getParams from '../../get-params'; -import { notesChart } from '../../../../services/stats'; +import { notesStats } from '../../../../services/stats'; export const meta = { desc: { @@ -27,7 +27,7 @@ export default (params: any) => new Promise(async (res, rej) => { const [ps, psErr] = getParams(meta, params); if (psErr) throw psErr; - const stats = await notesChart.getStats(ps.span as any, ps.limit); + const stats = await notesStats.getChart(ps.span as any, ps.limit); res(stats); }); |