eleven-solutions-common-website-unique-web 3.0.17 → 3.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,27 +63,6 @@ export const fetchUserByIdApi = (userId) => __awaiter(void 0, void 0, void 0, fu
|
|
63
63
|
return false;
|
64
64
|
}
|
65
65
|
});
|
66
|
-
// export const deleteUserApi = async (id: string) => {
|
67
|
-
// const token = cookies.get("token");
|
68
|
-
// try {
|
69
|
-
// const response = await axios.delete(`${apiUrl}/login/delete`, {
|
70
|
-
// headers: {
|
71
|
-
// Authorization: `Bearer ${token}`,
|
72
|
-
// "Content-Type": "application/json",
|
73
|
-
// },
|
74
|
-
// // data: {
|
75
|
-
// // id,
|
76
|
-
// // },
|
77
|
-
// params: {
|
78
|
-
// id,
|
79
|
-
// },
|
80
|
-
// });
|
81
|
-
// return response.data;
|
82
|
-
// } catch (error) {
|
83
|
-
// console.error("Error deleting lang:", error);
|
84
|
-
// throw error;
|
85
|
-
// }
|
86
|
-
// };
|
87
66
|
export const deleteUserApi = (id) => __awaiter(void 0, void 0, void 0, function* () {
|
88
67
|
const token = cookies.get("token");
|
89
68
|
try {
|
package/package.json
CHANGED
@@ -70,29 +70,6 @@ export const fetchUserByIdApi = async (userId: string) => {
|
|
70
70
|
}
|
71
71
|
};
|
72
72
|
|
73
|
-
// export const deleteUserApi = async (id: string) => {
|
74
|
-
// const token = cookies.get("token");
|
75
|
-
|
76
|
-
// try {
|
77
|
-
// const response = await axios.delete(`${apiUrl}/login/delete`, {
|
78
|
-
// headers: {
|
79
|
-
// Authorization: `Bearer ${token}`,
|
80
|
-
// "Content-Type": "application/json",
|
81
|
-
// },
|
82
|
-
// // data: {
|
83
|
-
// // id,
|
84
|
-
// // },
|
85
|
-
// params: {
|
86
|
-
// id,
|
87
|
-
// },
|
88
|
-
// });
|
89
|
-
// return response.data;
|
90
|
-
// } catch (error) {
|
91
|
-
// console.error("Error deleting lang:", error);
|
92
|
-
// throw error;
|
93
|
-
// }
|
94
|
-
// };
|
95
|
-
|
96
73
|
export const deleteUserApi = async (id: string) => {
|
97
74
|
const token = cookies.get("token");
|
98
75
|
|