v1.7 beta.7

This commit is contained in:
carodej
2020-07-18 16:25:29 +02:00
parent 6c96fe2f46
commit 35543e6f06
8 changed files with 15 additions and 25 deletions

View File

@@ -17,7 +17,7 @@ class PlanResource extends JsonResource
public function toArray($request)
{
// Get subscribers
$subscriber_count = Subscription::where('stripe_plan', $this['plan']['id'])->get();
$subscriber_count = Subscription::where('stripe_plan', $this['plan']['id'])->where('stripe_status', 'active')->get();
return [
'data' => [