Skip to content

Commit

Permalink
fix: [ANDROAPP-5604] set state when sharing QR (#3426)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmateos authored Dec 13, 2023
1 parent 0fab08c commit d97b1f4
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ public void download() {
teiModelBuilder.created(DateUtils.databaseDateFormat().parse(teiJson.getString("created")));
if (teiJson.has("lastUpdated"))
teiModelBuilder.lastUpdated(DateUtils.databaseDateFormat().parse(teiJson.getString("lastUpdated")));
if (teiJson.has("state"))
teiModelBuilder.state(State.valueOf(teiJson.getString("state")));
if (teiJson.has("aggregatedSyncState"))
teiModelBuilder.aggregatedSyncState(State.valueOf(teiJson.getString("aggregatedSyncState")));
if (teiJson.has("organisationUnit"))
teiModelBuilder.organisationUnit(teiJson.getString("organisationUnit"));
if (teiJson.has("trackedEntityType"))
Expand Down Expand Up @@ -452,8 +452,8 @@ public void download() {
enrollmentBuilder.created(DateUtils.databaseDateFormat().parse(enrollmentJson.getString("created")));
if (enrollmentJson.has("lastUpdated"))
enrollmentBuilder.lastUpdated(DateUtils.databaseDateFormat().parse(enrollmentJson.getString("lastUpdated")));
if (enrollmentJson.has("state"))
enrollmentBuilder.state(State.valueOf(enrollmentJson.getString("state")));
if (enrollmentJson.has("aggregatedSyncState"))
enrollmentBuilder.aggregatedSyncState(State.valueOf(enrollmentJson.getString("aggregatedSyncState")));
if (enrollmentJson.has("program"))
enrollmentBuilder.program(enrollmentJson.getString("program"));
if (enrollmentJson.has("followUp"))
Expand Down Expand Up @@ -504,8 +504,8 @@ public void download() {
eventBuilder.created(DateUtils.databaseDateFormat().parse(eventJson.getString("created")));
if (eventJson.has("lastUpdated"))
eventBuilder.lastUpdated(DateUtils.databaseDateFormat().parse(eventJson.getString("lastUpdated")));
if (eventJson.has("state"))
eventBuilder.state(State.valueOf(eventJson.getString("state")));
if (eventJson.has("aggregatedSyncState"))
eventBuilder.aggregatedSyncState(State.valueOf(eventJson.getString("aggregatedSyncState")));
if (eventJson.has("enrollment"))
eventBuilder.enrollment(eventJson.getString("enrollment"));
if (eventJson.has("program"))
Expand Down Expand Up @@ -681,7 +681,7 @@ public void downloadEventWORegistration() {
eventBuilder.attributeOptionCombo(eventWORegistrationJson.getString("attributeOptionCombo"));
}

eventBuilder.state(State.TO_UPDATE);
eventBuilder.aggregatedSyncState(State.TO_UPDATE);

Event event = eventBuilder
.deleted(false)
Expand Down

0 comments on commit d97b1f4

Please sign in to comment.