Skip to content
Snippets Groups Projects
Commit 46f99755 authored by syuilo's avatar syuilo
Browse files

refactor

parent 05cba6d3
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment