diff --git a/backend/app/Http/Controllers/Api/MeetingsController.php b/backend/app/Http/Controllers/Api/MeetingsController.php index f117a216..3c0d7c7d 100644 --- a/backend/app/Http/Controllers/Api/MeetingsController.php +++ b/backend/app/Http/Controllers/Api/MeetingsController.php @@ -813,7 +813,7 @@ class MeetingsController extends Controller { $meeting->save(); // 子供達を知らせます。 - if (null !== ($fr = FatherRelation::where('father_id', (int)session()->get('fathers')['id'])->get())) { + if (null !== ($fr = FatherRelation::where('father_id', (int)$meeting->id)->get())) { foreach ($fr as $f) { if (null !== ($meeting = MeetingApprovals::where('meeting_id', (int)$meeting_id)->where('child_id', $f->child_id)->whereNotNull('approval_at')->first())) { if (null !== ($child = Child::where('id', $f->child_id)->first())) {