mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 12:19:16 +00:00
fix: remove ticket from all users when deleted
This commit is contained in:
@@ -21,7 +21,7 @@ const ShowTicketService = async (id: string | number): Promise<Ticket> => {
|
||||
});
|
||||
|
||||
if (!ticket) {
|
||||
throw new AppError("No ticket found with this ID");
|
||||
throw new AppError("No ticket found with this ID", 404);
|
||||
}
|
||||
|
||||
return ticket;
|
||||
|
||||
Reference in New Issue
Block a user