Skip to content

Commit c69985e

Browse files
mnicolescumnicolescu
mnicolescu
authored and
mnicolescu
committed
Fix a bug to get the linked service type
1 parent e046853 commit c69985e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ProcessMyMedia/Extensions/Media/LinkedServiceExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public static Model.LinkedServiceEntity ToEntity(this LinkedServiceResource sou
2222
return new Model.LinkedServiceEntity()
2323
{
2424
Name = source.Name,
25-
Type = source.Type,
25+
Type = source?.Properties?.AdditionalProperties?.ContainsKey("type") == true ?
26+
source.Properties.AdditionalProperties["type"].ToString() : Model.LinkedServiceType.Unknown.ToString(),
2627
Description = source.Properties.Description
2728
};
2829
}

0 commit comments

Comments
 (0)