Update: UserCreate installation model to fix parameter runtime errors.

This commit is contained in:
Abdullah Mustapha 2024-01-02 01:22:20 +01:00
parent b07b4500fa
commit 6d76a6f19b
4 changed files with 14 additions and 17 deletions

View file

@ -13,8 +13,8 @@ export async function createNewOrgInstall(body: any) {
return res;
}
export async function createNewUserInstall(body: any) {
const result = await fetch(`${getAPIUrl()}install/user?org_slug=${body.org_slug}`, RequestBody("POST", body, null));
export async function createNewUserInstall(body: any,org_slug:string) {
const result = await fetch(`${getAPIUrl()}install/user?org_slug=${org_slug}`, RequestBody("POST", body, null));
const res = await errorHandling(result);
return res;
}