Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.7.1 - bug fix #139

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/Http/Requests/RclMessageRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ public function withValidator($validator)
// if (config('app.rcl_auto_acknowledgement_enabled')) {
// $this->cpdlcService->sendMessage(author: DatalinkAuthorities::SYS, recipient: $this->callsign, recipientAccount: Auth::user(), message: sprintf(RclResponsesEnum::Contact->value, strtoupper(DatalinkAuthorities::OCEN->description())), caption: RclResponsesEnum::Contact->text());
// }
$validator->errors()->add('entry_time.range', 'You are either too early or too late to submit oceanic clearance. If you are entering the oceanic more than ' . str(config('app.rcl_upper_limit') - 1) . ' minutes from now, come back when within ' . str(config('app.rcl_upper_limit') - 1) . ' minutes. If your entry is within ' . str(config('app.rcl_lower_limit' + 1)) . ' minutes, or you have already entered, request clearance via voice.');
$lower = config('app.rcl_lower_limit') + 1;
$upper = config('app.rcl_upper_limit') - 1;
$validator->errors()->add('entry_time.range', 'You are either too early or too late to submit oceanic clearance. If you are entering the oceanic more than ' . $upper . ' minutes from now, come back when within ' . $upper . ' minutes. If your entry is within ' . $lower . ' minutes, or you have already entered, request clearance via voice.');
}
}
}
Expand Down