chore: add refer logic of tickets for super admin
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user