(id: string, update: Partial<ServiceTicket>)
| 286 | } |
| 287 | |
| 288 | updateTicket(id: string, update: Partial<ServiceTicket>): ServiceTicket | undefined { |
| 289 | const index = this.serviceQueue.findIndex((t) => t.id === id); |
| 290 | if (index !== -1) { |
| 291 | this.serviceQueue[index] = { ...this.serviceQueue[index], ...update }; |
| 292 | return this.serviceQueue[index]; |
| 293 | } |
| 294 | return undefined; |
| 295 | } |
| 296 | |
| 297 | deleteTicket(id: string): boolean { |
| 298 | const initialLength = this.serviceQueue.length; |
no outgoing calls
no test coverage detected