mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-14 10:55:43 +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) => {
|
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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user