Update dependencies 🚀
This commit is contained in:
parent
6274f6f2f6
commit
0f27b62924
99 changed files with 446 additions and 433 deletions
|
|
@ -13,7 +13,7 @@ import { validateUsername } from '../../../../models/user';
|
|||
*/
|
||||
module.exports = async (params) => new Promise(async (res, rej) => {
|
||||
// Get 'username' parameter
|
||||
const [username, usernameError] = $(params.username).string().pipe(validateUsername).$;
|
||||
const [username, usernameError] = $(params.username).string().pipe(validateUsername).get();
|
||||
if (usernameError) return rej('invalid username param');
|
||||
|
||||
// Get exist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue