Fix hardcoded version numbers in backend - update to 1.2.5

This commit is contained in:
Muhammad Ibrahim
2025-09-20 13:48:25 +01:00
parent 8245c6b90d
commit bbd7769b8c
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ const router = express.Router();
router.get('/current', authenticateToken, async (req, res) => { router.get('/current', authenticateToken, async (req, res) => {
try { try {
// For now, return hardcoded version - this should match your agent version // For now, return hardcoded version - this should match your agent version
const currentVersion = '1.2.4'; const currentVersion = '1.2.5';
res.json({ res.json({
version: currentVersion, version: currentVersion,
@@ -149,7 +149,7 @@ router.get('/check-updates', authenticateToken, requireManageSettings, async (re
return res.status(400).json({ error: 'Settings not found' }); return res.status(400).json({ error: 'Settings not found' });
} }
const currentVersion = '1.2.4'; const currentVersion = '1.2.5';
const latestVersion = settings.latestVersion || currentVersion; const latestVersion = settings.latestVersion || currentVersion;
const isUpdateAvailable = settings.updateAvailable || false; const isUpdateAvailable = settings.updateAvailable || false;
const lastUpdateCheck = settings.lastUpdateCheck; const lastUpdateCheck = settings.lastUpdateCheck;

View File

@@ -100,7 +100,7 @@ class UpdateScheduler {
return; return;
} }
const currentVersion = '1.2.4'; const currentVersion = '1.2.5';
const isUpdateAvailable = this.compareVersions(latestVersion, currentVersion) > 0; const isUpdateAvailable = this.compareVersions(latestVersion, currentVersion) > 0;
// Update settings with check results // Update settings with check results