From 16c656eca62c9d07959c33794a4da919df8b7d1a Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 23 Jun 2021 01:45:14 +0200 Subject: [PATCH] Fixed: initialize activities --- app/Initialize/InitializeActivities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); }); }