Make sure user ID is an integer #1774

This commit is contained in:
James Cole
2018-10-07 15:55:44 +02:00
parent d8addc3175
commit 2ec310da18
2 changed files with 2 additions and 1 deletions

View File

@@ -116,7 +116,7 @@ class ImportArrayStorage
app('preferences')->mark(); app('preferences')->mark();
// email about this: // email about this:
event(new RequestedReportOnJournals($this->importJob->user_id, $collection)); event(new RequestedReportOnJournals((int)$this->importJob->user_id, $collection));
return $collection; return $collection;
} }

View File

@@ -56,6 +56,7 @@ class ImportJob extends Model
*/ */
protected $casts protected $casts
= [ = [
'user_id' => 'int',
'created_at' => 'datetime', 'created_at' => 'datetime',
'updated_at' => 'datetime', 'updated_at' => 'datetime',
'configuration' => 'array', 'configuration' => 'array',