Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Tim Visée
barbapappa
Commits
87e8ba0f
Verified
Commit
87e8ba0f
authored
Sep 20, 2020
by
Tim Visée
☕
Browse files
Fix query error in balance update logic
parent
929d743b
Pipeline
#192145625
passed with stage
in 5 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
webapp/app/Jobs/SendBalanceUpdates.php
webapp/app/Jobs/SendBalanceUpdates.php
+2
-3
No files found.
webapp/app/Jobs/SendBalanceUpdates.php
View file @
87e8ba0f
...
...
@@ -10,7 +10,6 @@ use Illuminate\Foundation\Bus\Dispatchable;
use
Illuminate\Queue\InteractsWithQueue
;
use
Illuminate\Queue\SerializesModels
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\Mail
;
/**
* Check for each user whether a new balance update should be sent, and in that
...
...
@@ -86,8 +85,8 @@ class SendBalanceUpdates implements ShouldQueue {
$users
->
each
(
function
(
$user
)
{
DB
::
transaction
(
function
()
use
(
$user
)
{
// Find the email history entry
$email_history
=
EmailHistory
::
user
(
$user
)
->
type
(
EmailHistory
::
TYPE_BALANCE_UPDATE
)
$email_history
=
EmailHistory
::
where
(
'user_id'
,
$user
->
id
)
->
where
(
'
type
'
,
EmailHistory
::
TYPE_BALANCE_UPDATE
)
->
first
();
// Create new entry if non existant
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment