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
This commit is contained in:
parent
3cc1739015
commit
34bdb99599
4
.replit
4
.replit
@ -19,10 +19,6 @@ externalPort = 80
|
||||
localPort = 33035
|
||||
externalPort = 3001
|
||||
|
||||
[[ports]]
|
||||
localPort = 40585
|
||||
externalPort = 6000
|
||||
|
||||
[[ports]]
|
||||
localPort = 41295
|
||||
externalPort = 5173
|
||||
|
||||
@ -4315,7 +4315,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
shiftDate: targetDate,
|
||||
startTime: sourceRoute.startTime,
|
||||
endTime: sourceRoute.endTime,
|
||||
status: "scheduled", // Nuova sequenza sempre in stato scheduled
|
||||
status: "planned", // Nuova sequenza sempre in stato planned
|
||||
location: sourceRoute.location,
|
||||
notes: sourceRoute.notes,
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user