Page MenuHomePhorge

D5877.1777335445.diff
No OneTemporary

Authored By
Unknown
Size
862 B
Referenced Files
None
Subscribers
None

D5877.1777335445.diff

diff --git a/src/app/Console/Commands/Wallet/TrialEndCommand.php b/src/app/Console/Commands/Wallet/TrialEndCommand.php
--- a/src/app/Console/Commands/Wallet/TrialEndCommand.php
+++ b/src/app/Console/Commands/Wallet/TrialEndCommand.php
@@ -35,8 +35,9 @@
->join('users', 'users.id', '=', 'wallets.user_id')
// exclude deleted accounts
->whereNull('users.deleted_at')
- // exclude "inactive" accounts
+ // exclude accounts that cannot receive mail
->where('users.status', '&', User::STATUS_IMAP_READY)
+ ->whereNot('users.status', '&', User::STATUS_SUSPENDED)
// consider only these created 1 to 2 months ago
->where('users.created_at', '>', \now()->subMonthsNoOverflow(2))
->where('users.created_at', '<=', \now()->subMonthsNoOverflow(1))

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 28, 12:17 AM (14 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18905303
Default Alt Text
D5877.1777335445.diff (862 B)

Event Timeline