feat: added optin to add delegant for executor and change delegant
This commit is contained in:
@@ -34,7 +34,8 @@ export async function resolveRoute(
|
||||
context: WebPartContext,
|
||||
requestTypeId: number,
|
||||
userEmail: string,
|
||||
status: ApprovalStatus = 'Approval'
|
||||
status: ApprovalStatus = 'Approval',
|
||||
departmentId: string | null = null
|
||||
): Promise<IResolvedRoute> {
|
||||
const c = await client(context);
|
||||
const url = `${APPROVAL_API_BASE_URL}/api/template-routes/resolve`;
|
||||
@@ -50,7 +51,8 @@ export async function resolveRoute(
|
||||
userEmail,
|
||||
projectId: null,
|
||||
status,
|
||||
fieldValues: []
|
||||
fieldValues: [],
|
||||
departmentId: departmentId || null
|
||||
})
|
||||
});
|
||||
if (!response.ok) {
|
||||
|
||||
Reference in New Issue
Block a user