diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-24 09:45:27 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-24 09:45:27 +0900 |
| commit | b679163d01b0152b38db658fe49d8a57c6aad930 (patch) | |
| tree | 9919cc598ed825c6841f47813010dac2d704614d /src/server/api/endpoints/charts/notes.ts | |
| parent | Update schemas.ts (diff) | |
| download | sharkey-b679163d01b0152b38db658fe49d8a57c6aad930.tar.gz sharkey-b679163d01b0152b38db658fe49d8a57c6aad930.tar.bz2 sharkey-b679163d01b0152b38db658fe49d8a57c6aad930.zip | |
Improve type definitions
Diffstat (limited to 'src/server/api/endpoints/charts/notes.ts')
| -rw-r--r-- | src/server/api/endpoints/charts/notes.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/server/api/endpoints/charts/notes.ts b/src/server/api/endpoints/charts/notes.ts index d254bb854c..cc0ca8bef7 100644 --- a/src/server/api/endpoints/charts/notes.ts +++ b/src/server/api/endpoints/charts/notes.ts @@ -1,6 +1,7 @@ import $ from 'cafy'; import define from '../../define'; -import notesChart from '../../../../services/chart/notes'; +import notesChart, { notesLogSchema } from '../../../../services/chart/notes'; +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(notesLogSchema), }; export default define(meta, async (ps) => { |