diff --git a/lib/metadataTypes/User.js b/lib/metadataTypes/User.js index 4c3d01b2e..bc5158c0e 100644 --- a/lib/metadataTypes/User.js +++ b/lib/metadataTypes/User.js @@ -639,7 +639,12 @@ class User extends MetadataType { } if ( !foundSingle && - !this._retrieveSOAP_installedPackage(requestParams, soapType, fields, resultsBulk) + !(await this._retrieveSOAP_installedPackage( + requestParams, + soapType, + fields, + resultsBulk + )) ) { return {}; } @@ -736,7 +741,7 @@ class User extends MetadataType { * @param {string} soapType e.g. AccountUser * @param {string[]} fields list of fields to retrieve * @param {object} resultsBulk actual return value of this method - * @returns {boolean} success flag + * @returns {Promise.} success flag */ static async _retrieveSOAP_installedPackage(requestParams, soapType, fields, resultsBulk) { const requestParamsInstalledPackage = {