mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-10-24 08:33:38 +00:00
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:
@@ -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:")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user