feat: add persistent mobile notifications
This commit is contained in:
@@ -55,8 +55,9 @@ class SendEngagementReminderNotifications extends Command
|
||||
private function eligibleUsersQuery(): Builder
|
||||
{
|
||||
return User::query()
|
||||
->select(['id', 'locale', 'suspended_at'])
|
||||
->select(['id', 'locale', 'suspended_at', 'engagement_reminders_enabled'])
|
||||
->whereNull('suspended_at')
|
||||
->where('engagement_reminders_enabled', true)
|
||||
->whereHas('deviceTokens')
|
||||
->whereDoesntHave('mealPosts', fn (Builder $query): Builder => $query
|
||||
->where('created_at', '>=', now()->subDay()));
|
||||
|
||||
Reference in New Issue
Block a user