Fix broken opt-in notifications

This commit is contained in:
2022-02-11 00:51:16 +00:00
parent 025f69f622
commit 294c678283
157 changed files with 39 additions and 18 deletions

3
app/Services/AppointmentService.php Normal file → Executable file
View File

@@ -9,6 +9,7 @@ use App\Appointment;
use App\Exceptions\InvalidAppointmentStatusException;
use App\Notifications\ApplicationMoved;
use App\Notifications\AppointmentCancelled;
use App\Notifications\AppointmentFinished;
use App\Notifications\AppointmentScheduled;
use Carbon\Carbon;
use Illuminate\Support\Facades\Auth;
@@ -104,7 +105,7 @@ class AppointmentService
if ($updateApplication)
{
$application->setStatus('STAGE_PEERAPPROVAL');
$application->user->notify(new ApplicationMoved());
$application->user->notify(new AppointmentFinished($application->appointment));
}
}
else