Update center added alert message
This commit is contained in:
@ -125,6 +125,6 @@ class DownloadModule extends Command
|
||||
$version = Versions::getLatestVersion($url, $current);
|
||||
}
|
||||
|
||||
return $version;
|
||||
return $version?->latest;
|
||||
}
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ class Update extends Command
|
||||
|
||||
public function getNewVersion()
|
||||
{
|
||||
return ($this->argument('new') == 'latest') ? Versions::latest($this->alias) : $this->argument('new');
|
||||
return ($this->argument('new') == 'latest') ? Versions::latest($this->alias)?->latest : $this->argument('new');
|
||||
}
|
||||
|
||||
public function getOldVersion()
|
||||
|
Reference in New Issue
Block a user