mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 19:59:20 +00:00
improvement: started translation of backend errors
This commit is contained in:
@@ -8,9 +8,7 @@ const CheckContactOpenTickets = async (contactId: number): Promise<void> => {
|
||||
});
|
||||
|
||||
if (ticket) {
|
||||
throw new AppError(
|
||||
"There's already an open or pending ticket for this contact."
|
||||
);
|
||||
throw new AppError("ERR_OTHER_OPEN_TICKET");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user