vcomply-workflow-engine 3.8.6 → 3.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31328,6 +31328,7 @@ class WorkflowPolicyComponent {
31328
31328
  const reviewerID = this.returnIds(policy.selectedReviewers, 'member_id');
31329
31329
  const policyAccessUsersIds = this.returnIds(policy.policy_access_owners, 'member_id') ?? [];
31330
31330
  const policyAccessGroupsIds = this.returnIds(policy.policy_access_groups, '_id') ?? [];
31331
+ const startDate = policy.policyDueDate?.$d ?? policy.policyDueDate;
31331
31332
  const payload = {
31332
31333
  policy_name: policy.policyName,
31333
31334
  notes: policy.policyNotes,
@@ -31335,7 +31336,7 @@ class WorkflowPolicyComponent {
31335
31336
  is_suggetion_enable: policy.acceptSuggestions ? 1 : 0,
31336
31337
  category_id_arr: this.returnIds(policy.selectedCategories, 'item_id'),
31337
31338
  approvers: approversData,
31338
- assignee_ids: this.returnIds(policy?.selectedAssignees, 'employee_id').map(id => Number(id)),
31339
+ assignee_ids: this.returnIds(policy?.selectedAssignees, 'employee_id').map((id) => Number(id)),
31339
31340
  usergroup_ids: this.returnIds(policy.selectedGroupAssignee, '_id') ?? [],
31340
31341
  Is_approval: 0,
31341
31342
  associated_documents: policy.addAssociatedDocuments
@@ -31354,7 +31355,7 @@ class WorkflowPolicyComponent {
31354
31355
  ? policy.mark_failed_after
31355
31356
  : '',
31356
31357
  // startDate: policy.policyDueDate.toDateString(),
31357
- startDate: moment(policy.policyDueDate).format('ddd MMM DD YYYY'),
31358
+ startDate: moment(startDate).format('ddd MMM DD YYYY'),
31358
31359
  ReviewerAttachments: policy.addReviewers && policy.documentsAndLinks.formatFiles
31359
31360
  ? reviewerFiles
31360
31361
  : [],