Check version number on version.md file (#280)

This commit is contained in:
mchev
2025-04-05 10:16:23 +02:00
committed by GitHub
parent ba243b28a9
commit 2aa17513e1
3 changed files with 6 additions and 5 deletions

View File

@@ -2,7 +2,6 @@
namespace App\Console\Commands;
use App\Models\Setting;
use App\Space\Updater;
use Illuminate\Console\Command;
@@ -98,7 +97,7 @@ class UpdateCommand extends Command
public function getInstalledVersion()
{
return Setting::getSetting('version');
return preg_replace('~[\r\n]+~', '', File::get(base_path('version.md')));
}
public function getLatestVersionResponse()