mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 12:10:41 -05:00
Merge branch 'main' into develop
This commit is contained in:
commit
9355583f7c
0
.gitea/README.md → .github/README.md
vendored
0
.gitea/README.md → .github/README.md
vendored
40
.github/dependabot.yml
vendored
Normal file
40
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
version: 2
|
||||
updates:
|
||||
# Composer dependencies (PHP)
|
||||
- package-ecosystem: "composer"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
time: "15:00" # 10am EST
|
||||
open-pull-requests-limit: 10
|
||||
target-branch: "develop"
|
||||
labels:
|
||||
- "dependencies"
|
||||
assignees:
|
||||
- "Refringe"
|
||||
|
||||
# GitHub Actions
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
time: "15:00" # 10am EST
|
||||
open-pull-requests-limit: 10
|
||||
target-branch: "develop"
|
||||
labels:
|
||||
- "dependencies"
|
||||
assignees:
|
||||
- "Refringe"
|
||||
|
||||
# npm modules (JavaScript)
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
time: "15:00" # 10am EST
|
||||
open-pull-requests-limit: 10
|
||||
target-branch: "develop"
|
||||
labels:
|
||||
- "dependencies"
|
||||
assignees:
|
||||
- "Refringe"
|
0
.gitea/logo.spt.png → .github/logo.spt.png
vendored
0
.gitea/logo.spt.png → .github/logo.spt.png
vendored
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 107 KiB |
@ -57,6 +57,9 @@ class ImportHubDataJob implements ShouldBeUnique, ShouldQueue
|
||||
$this->importMods();
|
||||
$this->importModVersions();
|
||||
|
||||
// Remove mods that are no longer on the hub.
|
||||
$this->removeDeletedMods();
|
||||
|
||||
// Ensure that we've disconnected from the Hub database, clearing temporary tables.
|
||||
DB::connection('mysql_hub')->disconnect();
|
||||
|
||||
@ -1076,6 +1079,19 @@ class ImportHubDataJob implements ShouldBeUnique, ShouldQueue
|
||||
}, 'versionID');
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove mods that are no longer on the Hub.
|
||||
*/
|
||||
private function removeDeletedMods(): void
|
||||
{
|
||||
$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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The job failed to process.
|
||||
*/
|
||||
|
@ -207,7 +207,7 @@ return [
|
||||
'maxJobs' => 0,
|
||||
'memory' => 256,
|
||||
'tries' => 1,
|
||||
'timeout' => 1500, // 25 Minutes
|
||||
'timeout' => 2700, // 45 Minutes
|
||||
'nice' => 0,
|
||||
],
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user