@dv4resi/dvss-backend-module-offering-im 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3068,7 +3068,10 @@ exports.TrybeCustomerManagement = class _TrybeCustomerManagement {
3068
3068
  baseUrl: integration.config.platformConfig.baseUrl,
3069
3069
  headers: integration.headers
3070
3070
  }, integration, loggedInUserId);
3071
- if (!response.data || response.data.length === 0) {
3071
+ if (!response.data || !Array.isArray(response.data)) {
3072
+ throw new dvssBackendModuleUtility.CustomException(dvssBackendModuleUtility.ERROR_NAMES.BAD_REQUEST, "Invalid Credentials");
3073
+ }
3074
+ if (response.data.length === 0) {
3072
3075
  return void 0;
3073
3076
  }
3074
3077
  return response.data[0];