diff --git a/backend/app/Http/Controllers/Api/MeetingsController.php b/backend/app/Http/Controllers/Api/MeetingsController.php index db37c7da..1f42d9c3 100644 --- a/backend/app/Http/Controllers/Api/MeetingsController.php +++ b/backend/app/Http/Controllers/Api/MeetingsController.php @@ -815,10 +815,7 @@ 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())) { - Log::critical('ミーティングの編集エラー:子供データが存在しません。親ID:'.session()->get('fathers')['id'].'、子ID:'.$f->child_id); - } - else { + if (null !== ($child = Child::where('id', $f->child_id)->first())) { Mail::to($child->email)->send(new MeetingEditNotification(session()->get('fathers')['company'], (int)$meeting_id)); } }