Skip to content

Commit

Permalink
Merge pull request #496 from tighten/ajm/prevent-reindexing-conferences
Browse files Browse the repository at this point in the history
Prevent re-indexing conferences without updates
  • Loading branch information
andrewmile authored Jan 2, 2024
2 parents 63f7a5f + e280b5b commit 6728651
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/CallingAllPapers/ConferenceImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ public function import(Event $event)
$conference->rejected_at = now();
}

$conference->save();
if ($conference->isDirty()) {
$conference->save();
}

return $conference;
}
Expand Down

0 comments on commit 6728651

Please sign in to comment.