Improve doc

This commit is contained in:
syuilo 2019-02-24 12:23:31 +09:00
parent d994c84901
commit 5db7b2e193
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 42 additions and 27 deletions

View file

@ -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) => {