Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Reject unlimited quotas as they don't count for swapping
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Aug 5, 2020
1 parent 2d90e33 commit bbaef5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Concerns/HasQuotas.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ public function featuresOverQuotaWhenSwapping(string $planId)
return collect($plan->getFeatures())
->filter
->isNotResettable()
->reject
->isUnlimited()
->filter(function (Feature $feature) use ($plan) {
return $this->getRemainingQuota(
$feature->getId(), $plan->getId()
Expand Down

0 comments on commit bbaef5c

Please sign in to comment.