Count inactive subscribers towards subscribers limit

[MAILPOET-1970]
This commit is contained in:
Ján Mikláš
2019-04-10 13:17:20 +02:00
committed by M. Shull
parent be777c20aa
commit f6a30dba38

View File

@ -592,7 +592,8 @@ class Subscriber extends Model {
static function getTotalSubscribers() {
return self::whereIn('status', array(
self::STATUS_SUBSCRIBED,
self::STATUS_UNCONFIRMED
self::STATUS_UNCONFIRMED,
self::STATUS_INACTIVE
))
->whereNull('deleted_at')
->count();