Merge branch 'backend' of https://github.com/nakazawakan/kikikanri into c_account

このコミットが含まれているのは:
dragon1211 2021-11-05 18:29:57 +09:00
コミット ba71a34f07
1個のファイルの変更4行の追加4行の削除

ファイルの表示

@ -151,8 +151,8 @@ class MeetingsController extends Controller {
if (null === ($l->meeting_images = MeetingImage::select($meeting_images_select)->where('meeting_id', (int)$l->id)->get())) {
$l->meeting_images = [];
}
if (null === ($l->fathers = Father::select($father_select)->where('id', (int)$l->father_id)->get())) {
$l->fathers = [];
if (null === ($l->fathers = Father::select($father_select)->where('id', (int)$l->father_id)->first())) {
$l->fathers = new \stdObject();
}
if (null === ($l->meeting_approvals = MeetingApprovals::select($meeting_approvals_select)->whereNotNull('approval_at')->where('meeting_id', (int)$l->id)->orderBy('updated_at', 'desc')->get())) {
$l->meeting_approvals = [];
@ -189,8 +189,8 @@ class MeetingsController extends Controller {
if (null === ($l->meeting_images = MeetingImage::select($meeting_images_select)->where('meeting_id', (int)$l->id)->get())) {
$l->meeting_images = [];
}
if (null === ($l->fathers = Father::select($father_select)->where('id', (int)$l->father_id)->get())) {
$l->fathers = [];
if (null === ($l->fathers = Father::select($father_select)->where('id', (int)$l->father_id)->first())) {
$l->fathers = new \stdObject();
}
if (null === ($l->meeting_approvals = MeetingApprovals::select($meeting_approvals_select)->whereNull('approval_at')->where('meeting_id', (int)$l->id)->orderBy('approval_at', 'asc')->get())) {
$l->meeting_approvals = [];