Function deleteTicketByIdService
- deleteTicketByIdService(id: string): QueryWithHelpers<null | Document<any, BeAnObject, Ticket> & Ticket & IObjectWithTypegooseFunction & {
_id: ObjectId;
}, Document<any, BeAnObject, Ticket> & Ticket & IObjectWithTypegooseFunction & {
_id: ObjectId;
}, BeAnObject, DocumentType<Ticket, BeAnObject>>
-
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 as a parameter, and returns a promise that will resolve to the deleted ticket
Returns
A promise that will resolve to the deleted ticket.
Author
aayushchugh