fix tests
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Philipp Lang 2023-10-18 18:38:26 +02:00
parent 7b6616c292
commit bda8b9c293
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class StoreForGroupAction
]; ];
Membership::where($attributes)->active()->whereNotIn('member_id', $members)->get() Membership::where($attributes)->active()->whereNotIn('member_id', $members)->get()
->each(fn ($membership) => MembershipDestroyAction::run($membership)); ->each(fn ($membership) => MembershipDestroyAction::run($membership->id));
collect($members) collect($members)
->except(Membership::where($attributes)->active()->pluck('member_id')) ->except(Membership::where($attributes)->active()->pluck('member_id'))