Fixed: initialize memberships

This commit is contained in:
philipp lang 2022-03-15 12:02:47 +01:00
parent c17334d9a6
commit 35f2814e9a
1 changed files with 4 additions and 0 deletions

View File

@ -124,6 +124,10 @@ class InitializeMembers
{
if ($this->shouldSyncMembership($membershipEntry)) {
$membership = $this->api->membership($member->id, $membershipEntry->id);
if (is_null($membership)) {
return [null, null, null];
}
app(ActivityCreator::class)->createFor($this->api, $membership->groupId);
$group = Group::firstOrCreate(['nami_id' => $membership->groupId], [
'nami_id' => $membership->groupId,