Removes deleted mods during import operation

This commit is contained in:
Refringe 2024-11-25 22:43:59 -05:00
parent 82b137e816
commit 294ae61e79
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k

View File

@ -1084,7 +1084,7 @@ class ImportHubDataJob implements ShouldBeUnique, ShouldQueue
*/
private function removeDeletedMods(): void
{
$mods = Mod::select('hub_id')->all();
$mods = Mod::select('hub_id')->get();
foreach ($mods as $mod) {
if (DB::connection('mysql_hub')->table('filebase1_file')->where('fileID', $mod->hub_id)->doesntExist()) {
$mod->delete();