• 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

    Parameters

    • id: string

      string - the id of the ticket to update

    • payload: UpdateQuery<Ticket>

      UpdateQuery

    Returns QueryWithHelpers<null | Document<any, BeAnObject, Ticket> & Ticket & IObjectWithTypegooseFunction & {
        _id: ObjectId;
    }, Document<any, BeAnObject, Ticket> & Ticket & IObjectWithTypegooseFunction & {
        _id: ObjectId;
    }, BeAnObject, DocumentType<Ticket, BeAnObject>>

Generated using TypeDoc