Hopefully plugged an undefined username hole
This commit is contained in:
@@ -70,7 +70,7 @@ const validateDetails = async (body) => {
|
||||
//check for existing username
|
||||
const usernameRecord = await accounts.findOne({
|
||||
where: {
|
||||
username: body.username
|
||||
username: body.username || ''
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user