mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-06 16:53:58 +09:00
wip #6140
This commit is contained in:
@ -27,8 +27,8 @@ export const meta = {
|
||||
},
|
||||
|
||||
offset: {
|
||||
validator: $.optional.num,
|
||||
default: 0,
|
||||
validator: $.optional.nullable.num,
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
|
||||
@ -36,5 +36,5 @@ export const meta = {
|
||||
};
|
||||
|
||||
export default define(meta, async (ps) => {
|
||||
return await notesChart.getChart(ps.span as any, ps.limit!, ps.offset!);
|
||||
return await notesChart.getChart(ps.span as any, ps.limit!, ps.offset ? new Date(ps.offset) : null);
|
||||
});
|
||||
|
Reference in New Issue
Block a user