chore: fix
This commit is contained in:
@@ -531,6 +531,22 @@ export const getClientReferralAdmin = async (
|
||||
}
|
||||
};
|
||||
|
||||
export const resetClientReferral = async (
|
||||
username: string,
|
||||
): Promise<{ success: boolean; message?: string }> => {
|
||||
try {
|
||||
const { data } = await apiClient.delete(
|
||||
`${V2}/admin/protected/client/${username}/referral/reset`,
|
||||
);
|
||||
return { success: true, message: data.message };
|
||||
} catch (error: any) {
|
||||
return {
|
||||
success: false,
|
||||
message: error.response?.data?.error || "Erreur reset parrainage",
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
export interface CancelledOrder {
|
||||
id: number;
|
||||
username: string;
|
||||
|
||||
Reference in New Issue
Block a user