style: add more informative comment

This commit is contained in:
Rico van Zelst
2023-10-31 09:14:58 +01:00
parent 6f178bdece
commit f2c390e940

View File

@@ -35,7 +35,8 @@ class ChampionSeeder extends Seeder
'release_patch' => $champion['releasePatch'],
];
// Check if the champion already exists and if any attributes have changed
// Check if the champion already exists and if any attributes have changed, if so update the champion. If the champion doesn't exist, create it.
// This is to prevent the champion data from being updated every time the seeder is run. As I'll probably run this on a cron job.
if ($championExists && $this->hasAttributesChanged($championExists, $championAttributes)) {
$championExists->update($championAttributes);
} elseif (!$championExists) {