mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-01 15:45:58 +09:00
parent
a28d341ed9
commit
4f9493265a
@ -55,11 +55,15 @@ module.exports = async (params, user, _, isSecure) =>
|
|||||||
// Get 'birthday' parameter
|
// Get 'birthday' parameter
|
||||||
const birthday = params.birthday;
|
const birthday = params.birthday;
|
||||||
if (birthday != null) {
|
if (birthday != null) {
|
||||||
if (!isValidBirthday(birthday)) {
|
if (birthday != '') {
|
||||||
return rej('invalid birthday');
|
if (!isValidBirthday(birthday)) {
|
||||||
}
|
return rej('invalid birthday');
|
||||||
|
}
|
||||||
|
|
||||||
user.birthday = birthday;
|
user.birthday = birthday;
|
||||||
|
} else {
|
||||||
|
user.birthday = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get 'avatar_id' parameter
|
// Get 'avatar_id' parameter
|
||||||
|
Loading…
Reference in New Issue
Block a user