mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
style: add more informative comment
This commit is contained in:
@@ -35,7 +35,8 @@ class ChampionSeeder extends Seeder
|
|||||||
'release_patch' => $champion['releasePatch'],
|
'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)) {
|
if ($championExists && $this->hasAttributesChanged($championExists, $championAttributes)) {
|
||||||
$championExists->update($championAttributes);
|
$championExists->update($championAttributes);
|
||||||
} elseif (!$championExists) {
|
} elseif (!$championExists) {
|
||||||
|
|||||||
Reference in New Issue
Block a user