Compare commits

..

4 Commits

Author SHA1 Message Date
Marco Lanzara
e5ce415aeb 🚀 Release v1.0.57
- Tipo: patch
- Database backup: database-backups/vigilanzaturni_v1.0.57_20251025_080211.sql.gz
- Data: 2025-10-25 08:02:29
2025-10-25 08:02:29 +00:00
marco370
34bdb99599 Update shift status when duplicating patrol routes
Correctly set the shift status to "planned" instead of "scheduled" when duplicating a patrol route to resolve an enum type error.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e0b5b11c-5b75-4389-8ea9-5f3cd9332f88
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e0b5b11c-5b75-4389-8ea9-5f3cd9332f88/Z8fg4as
2025-10-25 08:00:37 +00:00
marco370
3cc1739015 Fix error that occurs when viewing user profile information
Resolve null reference exception in UserProfileComponent.cs by adding null checks.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e0b5b11c-5b75-4389-8ea9-5f3cd9332f88
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e0b5b11c-5b75-4389-8ea9-5f3cd9332f88/Z8fg4as
2025-10-25 07:57:02 +00:00
marco370
20f24ba25e Fix error when copying patrol routes to a different date
Update date field name from `scheduledDate` to `shiftDate` in patrol route copying logic to resolve a data inconsistency issue.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e0b5b11c-5b75-4389-8ea9-5f3cd9332f88
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e0b5b11c-5b75-4389-8ea9-5f3cd9332f88/Z8fg4as
2025-10-25 07:56:17 +00:00
4 changed files with 12 additions and 12 deletions

View File

@ -4281,8 +4281,8 @@ export async function registerRoutes(app: Express): Promise<Server> {
return res.status(404).json({ message: "Sequenza pattuglia sorgente non trovata" }); return res.status(404).json({ message: "Sequenza pattuglia sorgente non trovata" });
} }
// Controlla se targetDate è uguale a sourceRoute.scheduledDate // Controlla se targetDate è uguale a sourceRoute.shiftDate
const sourceDate = new Date(sourceRoute.scheduledDate).toISOString().split('T')[0]; const sourceDate = new Date(sourceRoute.shiftDate).toISOString().split('T')[0];
const targetDateNormalized = new Date(targetDate).toISOString().split('T')[0]; const targetDateNormalized = new Date(targetDate).toISOString().split('T')[0];
if (sourceDate === targetDateNormalized) { if (sourceDate === targetDateNormalized) {
@ -4312,10 +4312,10 @@ export async function registerRoutes(app: Express): Promise<Server> {
.insert(patrolRoutes) .insert(patrolRoutes)
.values({ .values({
guardId: guardId || sourceRoute.guardId, // Usa nuova guardia o mantieni originale guardId: guardId || sourceRoute.guardId, // Usa nuova guardia o mantieni originale
scheduledDate: new Date(targetDate), shiftDate: targetDate,
startTime: sourceRoute.startTime, startTime: sourceRoute.startTime,
endTime: sourceRoute.endTime, endTime: sourceRoute.endTime,
status: "scheduled", // Nuova sequenza sempre in stato scheduled status: "planned", // Nuova sequenza sempre in stato planned
location: sourceRoute.location, location: sourceRoute.location,
notes: sourceRoute.notes, notes: sourceRoute.notes,
}) })

View File

@ -1,7 +1,13 @@
{ {
"version": "1.0.56", "version": "1.0.57",
"lastUpdate": "2025-10-25T07:50:09.248Z", "lastUpdate": "2025-10-25T08:02:29.362Z",
"changelog": [ "changelog": [
{
"version": "1.0.57",
"date": "2025-10-25",
"type": "patch",
"description": "Deployment automatico v1.0.57"
},
{ {
"version": "1.0.56", "version": "1.0.56",
"date": "2025-10-25", "date": "2025-10-25",
@ -295,12 +301,6 @@
"date": "2025-10-17", "date": "2025-10-17",
"type": "patch", "type": "patch",
"description": "Deployment automatico v1.0.8" "description": "Deployment automatico v1.0.8"
},
{
"version": "1.0.7",
"date": "2025-10-17",
"type": "patch",
"description": "Deployment automatico v1.0.7"
} }
] ]
} }