Skip to content

Commit

Permalink
Institute event was not being persisted so it had no id. Publish even…
Browse files Browse the repository at this point in the history
…t relies on the event having and id so events were not being published to nats for SCHOOL_MOVED.
  • Loading branch information
chris.ditcher authored and chris.ditcher committed Jul 30, 2024
1 parent 917eee9 commit a873214
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ public Pair<MoveSchoolData, InstituteEvent> moveSchool(MoveSchoolData moveSchool
final InstituteEvent instituteEvent = EventUtil.createInstituteEvent(
movedSchool.getUpdateUser(), movedSchool.getUpdateUser(),
JsonUtil.getJsonStringFromObject(moveSchoolData), MOVE_SCHOOL, SCHOOL_MOVED);
instituteEventRepository.save(instituteEvent);
return Pair.of(moveSchoolData, instituteEvent);
}

Expand Down

0 comments on commit a873214

Please sign in to comment.