Function updateTicketByIdService
- updateTicketByIdService(id: string, payload: UpdateQuery<Ticket>): QueryWithHelpers<null | Document<any, BeAnObject, Ticket> & Ticket & IObjectWithTypegooseFunction & {
_id: ObjectId;
}, Document<any, BeAnObject, Ticket> & Ticket & IObjectWithTypegooseFunction & {
_id: ObjectId;
}, BeAnObject, DocumentType<Ticket, BeAnObject>>
-
Parameters
-
id: string
-
payload: UpdateQuery<Ticket>
Returns QueryWithHelpers<null | Document<any, BeAnObject, Ticket> & Ticket & IObjectWithTypegooseFunction & {
_id: ObjectId;
}, Document<any, BeAnObject, Ticket> & Ticket & IObjectWithTypegooseFunction & {
_id: ObjectId;
}, BeAnObject, DocumentType<Ticket, BeAnObject>>
It takes an id and a payload, and then it updates the ticket with the given id with the given payload
Returns
A promise that resolves to the updated ticket.
Author
aayushchugh