Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F121334089
D5877.1777323746.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
862 B
Referenced Files
None
Subscribers
None
D5877.1777323746.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 27, 9:02 PM (11 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18905303
Default Alt Text
D5877.1777323746.diff (862 B)
Attached To
Mode
D5877: TrialEnd: Skip suspended accounts before dispatching the mail notification job
Attached
Detach File
Event Timeline