mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-03 23:16:28 +09:00
SchemaTypeの型計算量を削減 (#8332)
* schema typeの型計算量を削減 * reduce some type error * wip * fix * clean up * more shrink
This commit is contained in:
@ -65,5 +65,5 @@ export default define(meta, paramDef, async (ps) => {
|
||||
imageUrl: ps.imageUrl,
|
||||
}).then(x => Announcements.findOneOrFail(x.identifiers[0]));
|
||||
|
||||
return announcement;
|
||||
return Object.assign({}, announcement, { createdAt: announcement.createdAt.toISOString(), updatedAt: null });
|
||||
});
|
||||
|
Reference in New Issue
Block a user