Skip to content

Commit

Permalink
Feature/VL-277 (#19)
Browse files Browse the repository at this point in the history
* Feature/VL-277- Implemented more complex check on versionToken during /delivery/requests call

---------

Co-authored-by: Pesciatini, Francesco <francesco.pesciatini@nttdata.com>
Co-authored-by: CCTuduran <140727607+CCTuduran@users.noreply.github.com>
Co-authored-by: dennycarusonttdata <Denny.Caruso@nttdata.com>
  • Loading branch information
4 people authored Sep 22, 2023
1 parent fa45bfe commit d42a641
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/domain/CheckNotificationStatusRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4331,9 +4331,12 @@ export const makeCheckNotificationStatusRecord =
// Version Tokens
const uploadVersionToken = uploadRecord.output.returned.toString();
// eslint-disable-next-line sonarjs/prefer-single-boolean-return
return (
url.includes(uploadRecord.input.url) && docResp.ref.versionToken === uploadVersionToken
);
if (
url.includes(uploadRecord.input.url) &&
docResp.ref.versionToken === uploadVersionToken
) {
return true;
}
}
return hasToken;
})(records);
Expand Down

0 comments on commit d42a641

Please sign in to comment.