fix: app route path nesting (deploy/remove/templates), server.js fetchT import, lifetime license expiry, workflows path prefix
- routes/apps/index.js: mount sub-routers at '/' to avoid double-nesting (was /deploy/deploy, now /deploy) - server.js: add fetchT import for workflow engine init - license-manager.js: fix isExpired() for lifetime licenses (null expiresAt → always expired) - src/app.js: add '/workflows' path prefix to prevent requirePremium gating all routes - app-templates.js: fix 10 templates missing volumes/healthCheck - routes/apps/index.js: add e.stack to error logging for better debugging
This commit is contained in:
@@ -317,6 +317,9 @@ class LicenseManager {
|
||||
*/
|
||||
isExpired() {
|
||||
if (!this.activation) return true;
|
||||
// Lifetime licenses never expire
|
||||
if (this.activation.lifetime || this.activation.durationDays === 0) return false;
|
||||
if (!this.activation.expiresAt) return false; // No expiry set = lifetime
|
||||
return Date.now() > new Date(this.activation.expiresAt).getTime();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user