Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix: increase max trip duration from 90 to 365 days

Maurice9e3ac1e4906e
diff --git a/server/src/routes/trips.ts b/server/src/routes/trips.ts
index 7145fc74e..7ebce6267 100644
--- a/server/src/routes/trips.ts
+++ b/server/src/routes/trips.ts
@@ -12,7 +12,7 @@ import { writeAudit, getClientIp, logInfo } from '../services/auditLog';
const router = express.Router();
const MS_PER_DAY = 86400000;
-const MAX_TRIP_DAYS = 90;
+const MAX_TRIP_DAYS = 365;
const MAX_COVER_SIZE = 20 * 1024 * 1024; // 20 MB
const coversDir = path.join(__dirname, '../../uploads/covers');