From 0ebfde365190357c1e6c93228648ad9e64967ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Tue, 7 Sep 2021 10:58:39 +0300 Subject: [PATCH] fixed dashboard tests --- app/Jobs/Common/CreateDashboard.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Jobs/Common/CreateDashboard.php b/app/Jobs/Common/CreateDashboard.php index 08645c53e..488489c14 100644 --- a/app/Jobs/Common/CreateDashboard.php +++ b/app/Jobs/Common/CreateDashboard.php @@ -27,7 +27,9 @@ class CreateDashboard extends Job implements HasOwner, HasSource, ShouldCreate return; } - $this->model = Dashboard::create($this->request->only(['company_id', 'name', 'enabled'])); + $this->model = Dashboard::create($this->request->only([ + 'company_id', 'name', 'enabled', 'created_from', 'created_by' + ])); $this->model->users()->attach($users);