diff --git a/app/Initialize/InitializeActivities.php b/app/Initialize/InitializeActivities.php index 9d42ada8..d92fff7e 100644 --- a/app/Initialize/InitializeActivities.php +++ b/app/Initialize/InitializeActivities.php @@ -22,7 +22,7 @@ class InitializeActivities { $group = \App\Subactivity::updateOrCreate(['nami_id' => $group->id], ['nami_id' => $group->id, 'name' => $group->name]); $groups[] = $group->id; }); - $activity->groups()->sync($groups); + $activity->subactivities()->sync($groups); }); }); }