diff --git a/backend/app/Http/Controllers/Api/MeetingsController.php b/backend/app/Http/Controllers/Api/MeetingsController.php index 1f42d9c3..f117a216 100644 --- a/backend/app/Http/Controllers/Api/MeetingsController.php +++ b/backend/app/Http/Controllers/Api/MeetingsController.php @@ -815,8 +815,10 @@ class MeetingsController extends Controller { // 子供達を知らせます。 if (null !== ($fr = FatherRelation::where('father_id', (int)session()->get('fathers')['id'])->get())) { foreach ($fr as $f) { - if (null !== ($child = Child::where('id', $f->child_id)->first())) { - Mail::to($child->email)->send(new MeetingEditNotification(session()->get('fathers')['company'], (int)$meeting_id)); + 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())) { + Mail::to($child->email)->send(new MeetingEditNotification(session()->get('fathers')['company'], (int)$meeting_id)); + } } } }