Fixed: initialize activities

This commit is contained in:
philipp lang 2021-06-23 01:45:14 +02:00
parent 28f847cd10
commit 16c656eca6
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}); });
}); });
} }