Fixed: initialize activities
This commit is contained in:
parent
28f847cd10
commit
16c656eca6
|
@ -22,7 +22,7 @@ class InitializeActivities {
|
||||||
$group = \App\Subactivity::updateOrCreate(['nami_id' => $group->id], ['nami_id' => $group->id, 'name' => $group->name]);
|
$group = \App\Subactivity::updateOrCreate(['nami_id' => $group->id], ['nami_id' => $group->id, 'name' => $group->name]);
|
||||||
$groups[] = $group->id;
|
$groups[] = $group->id;
|
||||||
});
|
});
|
||||||
$activity->groups()->sync($groups);
|
$activity->subactivities()->sync($groups);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue