mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
fixes and check for valid cron expressions
This commit is contained in:
@@ -33,14 +33,12 @@ class CheckForUpdatesJob implements ShouldBeEncrypted, ShouldQueue
|
||||
if (version_compare($latest_version, $current_version, '>')) {
|
||||
// New version available
|
||||
$settings->update(['new_version_available' => true]);
|
||||
// Optionally, you can trigger a notification here
|
||||
} else {
|
||||
$settings->update(['new_version_available' => false]);
|
||||
}
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
// Log the error or send a notification
|
||||
ray('CheckForUpdatesJob failed: ' . $e->getMessage());
|
||||
// Consider implementing a notification to administrators
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user