We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c00c2e5 commit b04c3edCopy full SHA for b04c3ed
lib/report.js
@@ -702,6 +702,26 @@ class Report {
702
fetchConfig,
703
);
704
705
+ if (this.#reportDates) {
706
+ // fetch the latest pump settings record for date bound reports
707
+ const pumpSettingsFetch = await fetchUserData(
708
+ this.#userDetail.userId,
709
+ {
710
+ headers: this.#requestData.sessionHeader,
711
+ params: {
712
+ type: 'pumpSettings',
713
+ latest: 1,
714
+ },
715
716
+ ).catch((error) => {
717
+ this.#log.error(error);
718
+ });
719
+
720
+ if (pumpSettingsFetch?.length > 0) {
721
+ userData.push(pumpSettingsFetch[0]);
722
+ }
723
724
725
this.#log.debug(`Downloading data for User ${this.#userDetail.userId}...`);
726
727
this.#log.debug('add data to dataUtil');
0 commit comments