chore: add refer logic of tickets for super admin

This commit is contained in:
hamid zarghami
2025-04-21 16:16:37 +03:30
parent 32ee23c0d9
commit d35a4c2e51
8 changed files with 103 additions and 9 deletions
@@ -37,3 +37,10 @@ export const getCategories = async () => {
const { data } = await axios.get(`/tickets/categories`);
return data;
};
export const referTicket = async (id: string, userId: string) => {
const { data } = await axios.post(`/tickets/${id}/refer`, {
adminId: userId,
});
return data;
};