fix: remove outdated GitHub repository warning

- Update updateScheduler to use default GitHub repository
- Remove 'No GitHub repository configured' warning message
- Use same default fallback logic as version routes
This commit is contained in:
Muhammad Ibrahim
2025-10-04 20:29:46 +01:00
parent 864719b4b3
commit a43fc9d380

View File

@@ -60,13 +60,8 @@ class UpdateScheduler {
// Get settings // Get settings
const settings = await prisma.settings.findFirst(); const settings = await prisma.settings.findFirst();
if (!settings || !settings.githubRepoUrl) { const DEFAULT_GITHUB_REPO = "https://github.com/patchMon/patchmon";
console.log("⚠️ No GitHub repository configured, skipping update check"); const repoUrl = settings?.githubRepoUrl || DEFAULT_GITHUB_REPO;
return;
}
// Extract owner and repo from GitHub URL
const repoUrl = settings.githubRepoUrl;
let owner, repo; let owner, repo;
if (repoUrl.includes("git@github.com:")) { if (repoUrl.includes("git@github.com:")) {