Compare commits

..

4 Commits

Author SHA1 Message Date
Marco Lanzara
1cdae8c4b3 🚀 Release v1.0.48
- Tipo: patch
- Database backup: database-backups/vigilanzaturni_v1.0.48_20251023_160305.sql.gz
- Data: 2025-10-23 16:03:23
2025-10-23 16:03:23 +00:00
marco370
0d01252d86 Create database backup for system version 1.0.48
Create database backup file 'vigilanzaturni_v1.0.48_20251023_160305.sql'.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e5565357-90e1-419f-b9a8-6ee8394636df
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e5565357-90e1-419f-b9a8-6ee8394636df/kDVJJUd
2025-10-23 16:03:12 +00:00
marco370
6430fbe707 Update shift assignment date filtering to improve accuracy
Modify the query in `server/routes.ts` to correctly filter shift assignments by comparing the date part of `shifts.startTime` with `routeData.shiftDate`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e5565357-90e1-419f-b9a8-6ee8394636df
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e5565357-90e1-419f-b9a8-6ee8394636df/kDVJJUd
2025-10-23 16:02:01 +00:00
marco370
f50d5deb60 Fix error when saving patrol route stops with missing notes
Correctly handle missing `notes` field for patrol route stops during creation, resolving a 500 error.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e5565357-90e1-419f-b9a8-6ee8394636df
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e5565357-90e1-419f-b9a8-6ee8394636df/WbUtQAg
2025-10-23 15:59:13 +00:00
5 changed files with 13 additions and 5 deletions

View File

@ -19,6 +19,10 @@ externalPort = 80
localPort = 33035 localPort = 33035
externalPort = 3001 externalPort = 3001
[[ports]]
localPort = 39567
externalPort = 6000
[[ports]] [[ports]]
localPort = 41295 localPort = 41295
externalPort = 5173 externalPort = 5173

View File

@ -3708,7 +3708,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
.where( .where(
and( and(
eq(shiftAssignments.guardId, routeData.guardId), eq(shiftAssignments.guardId, routeData.guardId),
eq(shifts.shiftDate, routeData.shiftDate) sql`DATE(${shifts.startTime}) = ${routeData.shiftDate}`
) )
) )
.limit(1); .limit(1);
@ -3729,7 +3729,6 @@ export async function registerRoutes(app: Express): Promise<Server> {
siteId: stop.siteId, siteId: stop.siteId,
sequenceOrder: index + 1, sequenceOrder: index + 1,
estimatedArrivalTime: stop.estimatedArrivalTime || null, estimatedArrivalTime: stop.estimatedArrivalTime || null,
notes: stop.notes || null,
})); }));
await db.insert(patrolRouteStops).values(stopsData); await db.insert(patrolRouteStops).values(stopsData);
@ -3769,7 +3768,6 @@ export async function registerRoutes(app: Express): Promise<Server> {
siteId: stop.siteId, siteId: stop.siteId,
sequenceOrder: index + 1, sequenceOrder: index + 1,
estimatedArrivalTime: stop.estimatedArrivalTime || null, estimatedArrivalTime: stop.estimatedArrivalTime || null,
notes: stop.notes || null,
})); }));
await db.insert(patrolRouteStops).values(stopsData); await db.insert(patrolRouteStops).values(stopsData);

View File

@ -1,7 +1,13 @@
{ {
"version": "1.0.47", "version": "1.0.48",
"lastUpdate": "2025-10-23T15:51:51.675Z", "lastUpdate": "2025-10-23T16:03:23.268Z",
"changelog": [ "changelog": [
{
"version": "1.0.48",
"date": "2025-10-23",
"type": "patch",
"description": "Deployment automatico v1.0.48"
},
{ {
"version": "1.0.47", "version": "1.0.47",
"date": "2025-10-23", "date": "2025-10-23",