Compare commits
4 Commits
bd55070abc
...
e5ce415aeb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5ce415aeb | ||
|
|
34bdb99599 | ||
|
|
3cc1739015 | ||
|
|
20f24ba25e |
Binary file not shown.
BIN
database-backups/vigilanzaturni_v1.0.57_20251025_080211.sql.gz
Normal file
BIN
database-backups/vigilanzaturni_v1.0.57_20251025_080211.sql.gz
Normal file
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" });
|
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,
|
||||||
})
|
})
|
||||||
|
|||||||
16
version.json
16
version.json
@ -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"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user