diff options
Diffstat (limited to 'src/server/api/endpoints/charts/user/notes.ts')
| -rw-r--r-- | src/server/api/endpoints/charts/user/notes.ts | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/server/api/endpoints/charts/user/notes.ts b/src/server/api/endpoints/charts/user/notes.ts deleted file mode 100644 index 0d5f5a8b6a..0000000000 --- a/src/server/api/endpoints/charts/user/notes.ts +++ /dev/null @@ -1,35 +0,0 @@ -import $ from 'cafy'; -import define from '../../../define'; -import { ID } from '@/misc/cafy-id'; -import { convertLog } from '@/services/chart/core'; -import { perUserNotesChart } from '@/services/chart/index'; - -export const meta = { - tags: ['charts', 'users', 'notes'], - - params: { - span: { - validator: $.str.or(['day', 'hour']), - }, - - limit: { - validator: $.optional.num.range(1, 500), - default: 30, - }, - - offset: { - validator: $.optional.nullable.num, - default: null, - }, - - userId: { - validator: $.type(ID), - } - }, - - res: convertLog(perUserNotesChart.schema), -}; - -export default define(meta, async (ps) => { - return await perUserNotesChart.getChart(ps.span as any, ps.limit!, ps.offset ? new Date(ps.offset) : null, ps.userId); -}); |