From a872ba5634bf8b92db16d461ec76f138cc6a463d Mon Sep 17 00:00:00 2001 From: Adam Balan Date: Sun, 22 Oct 2023 10:49:54 -0600 Subject: [PATCH] Minir fix to admin import of guide quests --- app/Admin/Import/GuideQuests/Sheets/GuideQuestsSheet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Admin/Import/GuideQuests/Sheets/GuideQuestsSheet.php b/app/Admin/Import/GuideQuests/Sheets/GuideQuestsSheet.php index 7c36bbca2..97a604c6f 100755 --- a/app/Admin/Import/GuideQuests/Sheets/GuideQuestsSheet.php +++ b/app/Admin/Import/GuideQuests/Sheets/GuideQuestsSheet.php @@ -24,7 +24,7 @@ public function collection(Collection $rows) { if (is_null($guideQuestData)) { continue; } else { - $foundGuideQuest = GuideQuest::where('name', $guideQuestData['name']); + $foundGuideQuest = GuideQuest::where('name', $guideQuestData['name'])->first(); if (!is_null($foundGuideQuest)) { $foundGuideQuest->update($guideQuestData);