This commit is contained in:
syuilo 2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View file

@ -12,26 +12,26 @@ export const meta = {
params: {
id: {
validator: $.type(ID)
validator: $.type(ID),
},
title: {
validator: $.str.min(1)
validator: $.str.min(1),
},
text: {
validator: $.str.min(1)
validator: $.str.min(1),
},
imageUrl: {
validator: $.nullable.str.min(1)
}
validator: $.nullable.str.min(1),
},
},
errors: {
noSuchAnnouncement: {
message: 'No such announcement.',
code: 'NO_SUCH_ANNOUNCEMENT',
id: 'd3aae5a7-6372-4cb4-b61c-f511ffc2d7cc'
}
}
id: 'd3aae5a7-6372-4cb4-b61c-f511ffc2d7cc',
},
},
};
export default define(meta, async (ps, me) => {