bug fix
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user