mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-21 21:29:25 +00:00
🐛 fixing Cannot read property 'name' of null
This commit is contained in:
@@ -10,7 +10,9 @@ const GetDefaultWhatsAppByUser = async (
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(user.whatsapp !== null) {
|
||||||
logger.info(`Found whatsapp linked to user '${user.name}' is '${user.whatsapp.name}'.`);
|
logger.info(`Found whatsapp linked to user '${user.name}' is '${user.whatsapp.name}'.`);
|
||||||
|
}
|
||||||
|
|
||||||
return user.whatsapp;
|
return user.whatsapp;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user