Fix for issue #2593.
This commit is contained in:
parent
157f21125b
commit
d2c7d424de
|
@ -67,6 +67,9 @@ function getDocParams(docType, docId = null, otherProps = {}) {
|
|||
* @return {null|string} The tenant ID found within the app ID.
|
||||
*/
|
||||
exports.getTenantIDFromAppID = appId => {
|
||||
if (!appId) {
|
||||
return null
|
||||
}
|
||||
const split = appId.split(SEPARATOR)
|
||||
const hasDev = split[1] === DocumentTypes.DEV
|
||||
if ((hasDev && split.length === 3) || (!hasDev && split.length === 2)) {
|
||||
|
|
Loading…
Reference in New Issue