Skip to content

Commit

Permalink
Resolved conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
IrynaNakoneshniuk committed Dec 8, 2024
1 parent 3f26858 commit 32fae6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,19 +231,10 @@ private T GetImagesUploadTaskResult<T>(Task<T> task, Guid draftId) where T : cla

if (!task.IsCompletedSuccessfully)
{
if (task.IsFaulted)
{
logger.LogError(
task.Exception,
"Images upload task for workshop draft with ID {DraftId} failed due to an exception.",
draftId);
}
else
{
logger.LogError(
"Images upload task for workshop draft with ID {DraftId} did not complete successfully.",
draftId);
}
logger.LogError(
task.Exception,
"Images upload task for workshop draft with ID {DraftId} failed due to an exception.",
draftId);
return null;
}
return task.Result;
Expand Down
5 changes: 1 addition & 4 deletions OutOfSchool/OutOfSchool.BusinessLogic/Util/MappingProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,8 @@ public MappingProfile()
.ForMember(dest => dest.IsBlocked, opt => opt.Ignore())
.ForMember(dest => dest.BlockReason, opt => opt.Ignore())
.ForMember(dest => dest.UpdatedAt, opt => opt.Ignore())
<<<<<<< HEAD
.ForMember(dest => dest.Positions, opt => opt.Ignore());
=======
.ForMember(dest => dest.Positions, opt => opt.Ignore())
.ForMember(dest => dest.WorkshopDrafts, opt => opt.Ignore());
>>>>>>> 0259973a (Added WorkshopDraftService and fixed a mapping issue in tests related to JSON type.)

CreateMap<Provider, ProviderCreateDto>()
.Apply(AddCommonProvider2ProviderBaseDto);
Expand Down

0 comments on commit 32fae6e

Please sign in to comment.