fix toggle discount
This commit is contained in:
@@ -12,7 +12,7 @@ export const getDiscounts = async (search: string) => {
|
||||
};
|
||||
|
||||
export const toggleStatusDiscount = async (id: string) => {
|
||||
const { data } = await axios.patch(`/discounts/${id}/toggle`);
|
||||
const { data } = await axios.post(`/discounts/${id}/toggle-status`);
|
||||
return data;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user