mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 04:09:26 +00:00
improvement: redirect to ticketId after new ticket
This commit is contained in:
@@ -61,7 +61,7 @@ exports.index = async (req, res, next) => {
|
||||
});
|
||||
|
||||
if (!ticket) {
|
||||
return res.status(400).json({ error: "No ticket found with this ID" });
|
||||
return res.status(404).json({ error: "No ticket found with this ID" });
|
||||
}
|
||||
|
||||
await setMessagesAsRead(ticketId);
|
||||
|
||||
Reference in New Issue
Block a user