@vertikalx/vtx-backend-client 2.0.0-dev-carlos.6 → 2.0.0-dev-carlos.8
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/libs/vtx-backend-client/package.json +1 -1
- package/libs/vtx-backend-client/src/api/vtx-base-api.js +5 -1
- package/libs/vtx-backend-client/src/api/vtx-base-api.js.map +1 -1
- package/package.json +1 -1
- package/src/api/vtx-base-api.js +5 -1
- package/src/api/vtx-base-api.js.map +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
|
@@ -7416,7 +7416,7 @@ class VTXBaseAPI {
|
|
|
7416
7416
|
url: this.backendUrl + '/graphql',
|
|
7417
7417
|
headers: this.headers,
|
|
7418
7418
|
});
|
|
7419
|
-
let retValue = {};
|
|
7419
|
+
let retValue = { data: [] };
|
|
7420
7420
|
const fields = {
|
|
7421
7421
|
receiptId: true,
|
|
7422
7422
|
campaignName: true,
|
|
@@ -7439,9 +7439,13 @@ class VTXBaseAPI {
|
|
|
7439
7439
|
Array.isArray(response.getDonationsByAthlete);
|
|
7440
7440
|
return isResponseOk;
|
|
7441
7441
|
});
|
|
7442
|
+
if (!retValue.data) {
|
|
7443
|
+
retValue.data = [];
|
|
7444
|
+
}
|
|
7442
7445
|
}
|
|
7443
7446
|
catch (err) {
|
|
7444
7447
|
retValue = (0, response_builder_1.buildErrorResponse)(err);
|
|
7448
|
+
retValue.data = [];
|
|
7445
7449
|
}
|
|
7446
7450
|
return retValue;
|
|
7447
7451
|
}
|