Adding fix for issue in cloud with user password deletion causing undefined errors.

This commit is contained in:
mike12345567 2022-07-27 17:15:01 +01:00
parent ba1c5abf43
commit b26d0b6f21
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ module.exports = (
} }
if (!user && tenantId) { if (!user && tenantId) {
user = { tenantId } user = { tenantId }
} else { } else if (user) {
delete user.password delete user.password
} }
// be explicit // be explicit