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

Method getTicket

logistics-manager-app/src/fleet-db.ts:277–279  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

275 }
276
277 getTicket(id: string): ServiceTicket | undefined {
278 return this.serviceQueue.find((t) => t.id === id);
279 }
280
281 addTicket(ticket: Omit<ServiceTicket, 'id'>): ServiceTicket {
282 const newId = `TKT-${Math.floor(1000 + Math.random() * 9000)}`;

Callers 1

getServiceTicketFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected