fixes and check for valid cron expressions

This commit is contained in:
ayntk-ai committed 2024-08-05 20:05:38 +02:00
1 parent 27e82f0bde
commit 38976dac12
9 files changed
+124 -27

No files matched your search

+1 -3
View File
@@ -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
}
}
}