fixes and check for valid cron expressions

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

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
}
}
}