mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-14 02:47:00 +00:00
Fix hardcoded version numbers in backend - update to 1.2.5
This commit is contained in:
@@ -14,7 +14,7 @@ const router = express.Router();
|
||||
router.get('/current', authenticateToken, async (req, res) => {
|
||||
try {
|
||||
// For now, return hardcoded version - this should match your agent version
|
||||
const currentVersion = '1.2.4';
|
||||
const currentVersion = '1.2.5';
|
||||
|
||||
res.json({
|
||||
version: currentVersion,
|
||||
@@ -149,7 +149,7 @@ router.get('/check-updates', authenticateToken, requireManageSettings, async (re
|
||||
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 isUpdateAvailable = settings.updateAvailable || false;
|
||||
const lastUpdateCheck = settings.lastUpdateCheck;
|
||||
|
||||
@@ -100,7 +100,7 @@ class UpdateScheduler {
|
||||
return;
|
||||
}
|
||||
|
||||
const currentVersion = '1.2.4';
|
||||
const currentVersion = '1.2.5';
|
||||
const isUpdateAvailable = this.compareVersions(latestVersion, currentVersion) > 0;
|
||||
|
||||
// Update settings with check results
|
||||
|
||||
Reference in New Issue
Block a user