mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 12:10:41 -05:00
Eager Loading SPT Versions
This commit is contained in:
parent
39a7640e92
commit
41555ca674
@ -20,6 +20,8 @@ class ModObserver
|
||||
*/
|
||||
public function saved(Mod $mod): void
|
||||
{
|
||||
$mod->load('versions.sptVersions');
|
||||
|
||||
foreach ($mod->versions as $modVersion) {
|
||||
$this->dependencyVersionService->resolve($modVersion);
|
||||
}
|
||||
@ -44,6 +46,8 @@ class ModObserver
|
||||
*/
|
||||
public function deleted(Mod $mod): void
|
||||
{
|
||||
$mod->load('versions.sptVersions');
|
||||
|
||||
$this->updateRelatedSptVersions($mod);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user