Skip to content

Commit

Permalink
#139: add missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Mar 24, 2023
1 parent 8847184 commit 0630645
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/metadataTypes/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
}
Expand Down Expand Up @@ -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.<boolean>} success flag
*/
static async _retrieveSOAP_installedPackage(requestParams, soapType, fields, resultsBulk) {
const requestParamsInstalledPackage = {
Expand Down

0 comments on commit 0630645

Please sign in to comment.