Skip to content

Commit

Permalink
Make sure user ID is an integer #1774
Browse files Browse the repository at this point in the history
  • Loading branch information
JC5 committed Oct 7, 2018
1 parent d8addc3 commit 2ec310d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Import/Storage/ImportArrayStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function store(): Collection
app('preferences')->mark();

// email about this:
event(new RequestedReportOnJournals($this->importJob->user_id, $collection));
event(new RequestedReportOnJournals((int)$this->importJob->user_id, $collection));

return $collection;
}
Expand Down
1 change: 1 addition & 0 deletions app/Models/ImportJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class ImportJob extends Model
*/
protected $casts
= [
'user_id' => 'int',
'created_at' => 'datetime',
'updated_at' => 'datetime',
'configuration' => 'array',
Expand Down

0 comments on commit 2ec310d

Please sign in to comment.