mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-13 04:30:41 -05:00
This update gives mod versions a supported SPT version field that accepts a semantic version. The latest supported SPT version will be automatically resolved based on the semvar. Next up: I need to update the ModVersion to SptVersion relationship to be a many-to-many and expand the resolution to resolve multiple versions.
21 lines
474 B
PHP
21 lines
474 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Jobs\ImportHubDataJob;
|
|
use Illuminate\Console\Command;
|
|
|
|
class ImportHubCommand extends Command
|
|
{
|
|
protected $signature = 'app:import-hub';
|
|
|
|
protected $description = 'Connects to the Hub database and imports the data into the Laravel database.';
|
|
|
|
public function handle(): void
|
|
{
|
|
ImportHubDataJob::dispatch()->onQueue('long');
|
|
|
|
$this->info('The import job has been added to the queue.');
|
|
}
|
|
}
|