This commit is contained in:
Samandar Turgunboyev
2025-12-26 17:21:40 +05:00
parent 388c8bcfd1
commit 1389750ddd
5 changed files with 9 additions and 16 deletions

View File

@@ -12,7 +12,7 @@ export const user_api = {
return res;
},
async update({ body, id }: { id: string; body: UserCreateReq }) {
async update({ body, id }: { id: string | number; body: UserCreateReq }) {
const res = await httpClient.patch(`${API_URLS.UserUpdate(id)}`, body);
return res;
},
@@ -22,7 +22,7 @@ export const user_api = {
return res;
},
async delete({ id }: { id: string }) {
async delete({ id }: { id: string | number }) {
const res = await httpClient.delete(`${API_URLS.UserDelete(id)}`);
return res;
},