[API] Fix bug and change limit 50 to 30
This commit is contained in:
parent
4f5928c575
commit
93c3faf141
2 changed files with 5 additions and 1 deletions
|
|
@ -25,6 +25,10 @@ module.exports = async (params, user, _, isSecure) =>
|
|||
// Get 'name' parameter
|
||||
const name = params.name;
|
||||
if (name !== undefined && name !== null) {
|
||||
if (typeof name != 'string') {
|
||||
return rej('name must be a string');
|
||||
}
|
||||
|
||||
if (!isValidName(name)) {
|
||||
return rej('invalid name');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue