mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 12:10:41 -05:00
Removes deleted mods during import operation
This commit is contained in:
parent
82b137e816
commit
294ae61e79
@ -1084,7 +1084,7 @@ class ImportHubDataJob implements ShouldBeUnique, ShouldQueue
|
|||||||
*/
|
*/
|
||||||
private function removeDeletedMods(): void
|
private function removeDeletedMods(): void
|
||||||
{
|
{
|
||||||
$mods = Mod::select('hub_id')->all();
|
$mods = Mod::select('hub_id')->get();
|
||||||
foreach ($mods as $mod) {
|
foreach ($mods as $mod) {
|
||||||
if (DB::connection('mysql_hub')->table('filebase1_file')->where('fileID', $mod->hub_id)->doesntExist()) {
|
if (DB::connection('mysql_hub')->table('filebase1_file')->where('fileID', $mod->hub_id)->doesntExist()) {
|
||||||
$mod->delete();
|
$mod->delete();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user