Skip to content

Commit

Permalink
Minir fix to admin import of guide quests
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKyle committed Oct 22, 2023
1 parent fd04195 commit a872ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Admin/Import/GuideQuests/Sheets/GuideQuestsSheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a872ba5

Please sign in to comment.