Skip to content

Commit

Permalink
Merge pull request #5683 from entur/fix_iom_save_setup
Browse files Browse the repository at this point in the history
Save startup model when InteractiveOtpMain starts
  • Loading branch information
t2gran authored Feb 16, 2024
2 parents ea4c627 + 151354b commit b1ae92c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ private void run() {
}

private void startOtp() {
model.save();
startDebugControllerAndSetupRequestInterceptor();

System.out.println("Start OTP: " + model + "\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private static Model readFromFile() {
}
}

private void save() {
void save() {
try {
var mapper = new ObjectMapper().configure(SerializationFeature.INDENT_OUTPUT, true);
mapper.writeValue(MODEL_FILE, this);
Expand Down

0 comments on commit b1ae92c

Please sign in to comment.