Skip to content

Commit

Permalink
Bug fix to only execute save handler if visit has previously been saved.
Browse files Browse the repository at this point in the history
  • Loading branch information
mseaton committed Feb 26, 2024
1 parent c8a48f0 commit 81a3cb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public VisitWithQueueEntriesSaveHandler(@Qualifier("queue.QueueEntryService") Qu

@Override
public void handle(Visit visit, User user, Date date, String s) {
if (visit.getStopDatetime() != null) {
if (visit.getVisitId() != null && visit.getStopDatetime() != null) {
QueueEntrySearchCriteria criteria = new QueueEntrySearchCriteria();
criteria.setVisit(visit);
criteria.setIsEnded(false);
Expand Down

0 comments on commit 81a3cb3

Please sign in to comment.