This commit is contained in:
syuilo 2023-03-24 18:29:39 +09:00
parent 05cba6d357
commit 46f99755db

View File

@ -79,7 +79,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
private globalEventService: GlobalEventService,
) {
super(meta, paramDef, async (ps, me) => {
if ((ps.keywords.length === 0) || (ps.keywords[0].filter(x => x !== '').length === 0)) {
if ((ps.keywords.length === 0) || ps.keywords[0].every(x => x === '')) {
throw new Error('invalid param');
}