Expand report email.

This commit is contained in:
James Cole
2018-06-26 19:26:10 +02:00
parent 5d01955133
commit 49de4f2200
6 changed files with 53 additions and 15 deletions

View File

@@ -90,7 +90,7 @@ class CreateRecurringTransactions implements ShouldQueue
// will now send email to users.
foreach ($result as $userId => $journals) {
//// random bunch to make mail.
$journals = TransactionJournal::where('user_id', $userId)->inRandomOrder()->take(1)->get();
//$journals = TransactionJournal::where('user_id', $userId)->inRandomOrder()->take(1)->get();
event(new RequestedReportOnJournals($userId, $journals));
}