MCPcopy Create free account
hub / github.com/angular/examples / updateTicket

Method updateTicket

logistics-manager-app/src/fleet-db.ts:288–295  ·  view source on GitHub ↗
(id: string, update: Partial<ServiceTicket>)

Source from the content-addressed store, hash-verified

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;

Callers 1

updateServiceTicketFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected