Skip to content

Commit

Permalink
change fetching trip
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Nov 19, 2023
1 parent 515f395 commit 761ce49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2629,7 +2629,7 @@ class VwWeconnect extends utils.Adapter {
// error.response && this.log.error(JSON.stringify(error.response.data));
});
}
if (this.config.tripShortTerm == true) {
if (this.config.tripShortTerm == true && !this.blockTrip) {
await axios({
method: "get",
url: "https://emea.bff.cariad.digital/vehicle/v1/trips/" + vin + "/shortterm",
Expand Down Expand Up @@ -2661,7 +2661,7 @@ class VwWeconnect extends utils.Adapter {
error && error.response && this.log.error(JSON.stringify(error.response.data));
});
}
if (this.config.tripLongTerm == true) {
if (this.config.tripLongTerm == true && !this.blockTrip) {
await axios({
method: "get",
url: "https://emea.bff.cariad.digital/vehicle/v1/trips/" + vin + "/longterm",
Expand Down

0 comments on commit 761ce49

Please sign in to comment.