Auto-assign linked executive user and persist userId in organisation update modal
This commit is contained in:
@@ -247,6 +247,7 @@ export const createOrganisation = async (payload: CreateOrganisationRequest): Pr
|
||||
email: payload.email,
|
||||
idNumber: payload.idNumber || null,
|
||||
organisationUser: payload.organisationUser,
|
||||
userId: payload.userId || payload.organisationUser,
|
||||
type: payload.type !== undefined ? Number(payload.type) : 5,
|
||||
});
|
||||
return res.data;
|
||||
@@ -261,6 +262,7 @@ export const updateOrganisation = async (payload: UpdateOrganisationRequest): Pr
|
||||
email: payload.email,
|
||||
idNumber: payload.idNumber,
|
||||
organisationUser: payload.organisationUser,
|
||||
userId: payload.userId || payload.organisationUser,
|
||||
type: Number(payload.type),
|
||||
status: orgStatus,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user