Compare commits
No commits in common. "e5ce415aeb214ce343f02772da52f3a56a28a508" and "bd55070abc17939b08cc27e97d3a08d69e0143cc" have entirely different histories.
e5ce415aeb
...
bd55070abc
BIN
database-backups/vigilanzaturni_v1.0.47_20251023_155134.sql.gz
Normal file
BIN
database-backups/vigilanzaturni_v1.0.47_20251023_155134.sql.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -4281,8 +4281,8 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
return res.status(404).json({ message: "Sequenza pattuglia sorgente non trovata" });
|
||||
}
|
||||
|
||||
// Controlla se targetDate è uguale a sourceRoute.shiftDate
|
||||
const sourceDate = new Date(sourceRoute.shiftDate).toISOString().split('T')[0];
|
||||
// Controlla se targetDate è uguale a sourceRoute.scheduledDate
|
||||
const sourceDate = new Date(sourceRoute.scheduledDate).toISOString().split('T')[0];
|
||||
const targetDateNormalized = new Date(targetDate).toISOString().split('T')[0];
|
||||
|
||||
if (sourceDate === targetDateNormalized) {
|
||||
@ -4312,10 +4312,10 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
.insert(patrolRoutes)
|
||||
.values({
|
||||
guardId: guardId || sourceRoute.guardId, // Usa nuova guardia o mantieni originale
|
||||
shiftDate: targetDate,
|
||||
scheduledDate: new Date(targetDate),
|
||||
startTime: sourceRoute.startTime,
|
||||
endTime: sourceRoute.endTime,
|
||||
status: "planned", // Nuova sequenza sempre in stato planned
|
||||
status: "scheduled", // Nuova sequenza sempre in stato scheduled
|
||||
location: sourceRoute.location,
|
||||
notes: sourceRoute.notes,
|
||||
})
|
||||
|
||||
16
version.json
16
version.json
@ -1,13 +1,7 @@
|
||||
{
|
||||
"version": "1.0.57",
|
||||
"lastUpdate": "2025-10-25T08:02:29.362Z",
|
||||
"version": "1.0.56",
|
||||
"lastUpdate": "2025-10-25T07:50:09.248Z",
|
||||
"changelog": [
|
||||
{
|
||||
"version": "1.0.57",
|
||||
"date": "2025-10-25",
|
||||
"type": "patch",
|
||||
"description": "Deployment automatico v1.0.57"
|
||||
},
|
||||
{
|
||||
"version": "1.0.56",
|
||||
"date": "2025-10-25",
|
||||
@ -301,6 +295,12 @@
|
||||
"date": "2025-10-17",
|
||||
"type": "patch",
|
||||
"description": "Deployment automatico v1.0.8"
|
||||
},
|
||||
{
|
||||
"version": "1.0.7",
|
||||
"date": "2025-10-17",
|
||||
"type": "patch",
|
||||
"description": "Deployment automatico v1.0.7"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user