🐛 Fix users with no email console (#275)
This commit is contained in:
@@ -107,7 +107,7 @@ export class ConsoleRemoteClient implements ConsoleServiceClient {
|
|||||||
logger.info(`Roles are: ${roles}.`);
|
logger.info(`Roles are: ${roles}.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
let user = await gr.services.users.getByConsoleId(userDTO.email);
|
let user = await gr.services.users.getByConsoleId(userDTO.email || userDTO._id);
|
||||||
|
|
||||||
if (!user) {
|
if (!user) {
|
||||||
if (!userDTO.email) {
|
if (!userDTO.email) {
|
||||||
|
|||||||
Reference in New Issue
Block a user