mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 12:10:41 -05:00
Latest SPT Version Bug
This fixes an issue with the latest SPT version query sorting the version numbers incorrectly.
This commit is contained in:
parent
6cd98a617e
commit
a60bb5819a
@ -168,7 +168,9 @@ class SptVersion extends Model
|
||||
{
|
||||
return Cache::remember('latest_spt_version', 300, function () {
|
||||
return SptVersion::select(['version', 'version_major', 'version_minor', 'version_patch', 'version_pre_release'])
|
||||
->orderByDesc('version')
|
||||
->orderByDesc('version_major')
|
||||
->orderByDesc('version_minor')
|
||||
->orderByDesc('version_patch')
|
||||
->first();
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user