Merge branch 'master' of https://gitlab.com/mohit.panjvani/crater-web into namespace-changes

This commit is contained in:
jayvirsinh_gohil
2019-11-16 16:27:34 +05:30
21 changed files with 87 additions and 200630 deletions

View File

@ -15,10 +15,10 @@ class Listener
protected function check($event)
{
// Do not apply to the same or newer versions
if (version_compare($event->old, static::VERSION, '>=')) {
return false;
if (version_compare(static::VERSION, $event->old, '>')) {
return true;
}
return true;
return false;
}
}

View File

@ -26,7 +26,7 @@ class Updater
if ($response instanceof RequestException) {
return [
'success' => false,
'errors' => 'Download Exception',
'error' => 'Download Exception',
'data' => [
'path' => $path
]
@ -85,7 +85,7 @@ class Updater
return [
'success' => true,
'errors' => false,
'error' => false,
'data' => []
];
} catch (\Exception $e) {
@ -98,7 +98,7 @@ class Updater
return [
'success' => false,
'errors' => 'Update error',
'error' => 'Update error',
'data' => []
];
}