diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-24 12:23:31 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-24 12:23:31 +0900 |
| commit | 5db7b2e193a5d4f26c96eefe3cb19ab214963fc4 (patch) | |
| tree | b0a07e4659f4c172ef6977d5bc97b84901fa6de7 /src/server/api/endpoints | |
| parent | Resolve audioTag undefined error (#4363) (diff) | |
| download | sharkey-5db7b2e193a5d4f26c96eefe3cb19ab214963fc4.tar.gz sharkey-5db7b2e193a5d4f26c96eefe3cb19ab214963fc4.tar.bz2 sharkey-5db7b2e193a5d4f26c96eefe3cb19ab214963fc4.zip | |
Improve doc
Diffstat (limited to 'src/server/api/endpoints')
| -rw-r--r-- | src/server/api/endpoints/charts/users.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/server/api/endpoints/charts/users.ts b/src/server/api/endpoints/charts/users.ts index 0b1b18bbe7..9de54a630e 100644 --- a/src/server/api/endpoints/charts/users.ts +++ b/src/server/api/endpoints/charts/users.ts @@ -1,6 +1,7 @@ import $ from 'cafy'; import define from '../../define'; -import usersChart from '../../../../services/chart/users'; +import usersChart, { usersLogSchema } from '../../../../services/chart/users'; +import { convertLog } from '../../../../services/chart'; export const meta = { stability: 'stable', @@ -28,12 +29,7 @@ export const meta = { }, }, - res: { - type: 'array', - items: { - type: 'object', - }, - }, + res: convertLog(usersLogSchema), }; export default define(meta, async (ps) => { |