Skip to content

Commit

Permalink
Debug API CROUS : activation/désactivation carte CROUS ne se faisait …
Browse files Browse the repository at this point in the history
…plus systématiquement sur les comptes existants (étudiants) suite au commit 77a79c9
  • Loading branch information
vbonamy committed Oct 2, 2023
1 parent 44d9345 commit f983e91
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -349,12 +349,13 @@ private boolean updateRightHolder(String eppn, RightHolder oldRightHolder, EsupS
&& Long.valueOf(10).equals(rightHolder.getIdCompanyRate())
&& oldRightHolder.getDueDate().after(rightHolder.getDueDate())) {
log.warn(String.format("For Crous/Izly, change of date for a student only if we add time - here it's not the case for %s."
+ "Actual dueDate : %s ; wanted dueDate : %s -> we keep the actual dueDate and others elements - update aborted",
+ "Actual dueDate : %s ; wanted dueDate : %s -> we keep the actual dueDate and others elements - crous update not needed but consider all is ok" +
" so that we enable/disable the card in crous",
oldRightHolder.getIdentifier(),
oldRightHolder.getDueDate(),
rightHolder.getDueDate()));
rightHolder.setDueDate(oldRightHolder.getDueDate());
return false;
return true;
}
HttpEntity entity = new HttpEntity(rightHolder, headers);
try {
Expand Down

0 comments on commit f983e91

Please sign in to comment.