Skip to content

Commit

Permalink
Resolve issue with face-to-face being populated incorrectly (#1077)
Browse files Browse the repository at this point in the history
* Resolve dissue with face-to-face being poopulated incorrectly

* Linting
  • Loading branch information
adrianwium authored Sep 4, 2024
1 parent 32f08f4 commit 780b696
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class SAYouthClient : ISharingProviderClient
private const string Header_Api_Version = "X-API-VERSION";
private const string Header_Authorization = "X-API-KEY";

private static readonly EngagementTypeOption[] EngagementTypes_FaceToFace = [EngagementTypeOption.Online, EngagementTypeOption.Hybrid];
private static readonly EngagementTypeOption[] EngagementTypes_FaceToFace = [EngagementTypeOption.Offline];
#endregion

#region Constructor
Expand Down Expand Up @@ -193,7 +193,7 @@ private OpportunitySkillingUpsertRequest ToRequestUpsert(OpportunityRequestUpser
CloseDate = request.Opportunity.DateEnd,
Duration = request.Opportunity.ToDuration(),
Requirements = "Instructions can be found in the description",
FaceToFace = request.Opportunity.EngagementType.HasValue ? EngagementTypes_FaceToFace.Contains(request.Opportunity.EngagementType.Value) ? YesNoOption.Yes : YesNoOption.No : YesNoOption.Yes,
FaceToFace = request.Opportunity.EngagementType.HasValue ? EngagementTypes_FaceToFace.Contains(request.Opportunity.EngagementType.Value) ? YesNoOption.Yes : YesNoOption.No : YesNoOption.No,
Url = request.Opportunity.YomaInfoURL(_appSettings.AppBaseURL)
};

Expand Down

0 comments on commit 780b696

Please sign in to comment.