Skip to content

Commit

Permalink
Fix #300 Add Profile Links
Browse files Browse the repository at this point in the history
+ API response code changed from OK to CREATED
  • Loading branch information
IvanLieckens committed Nov 30, 2023
1 parent 06f850c commit b84fdb9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public override async Task<IViewComponentResult> InvokeAsync()
Type = model.Type
};
Response<ProfileLink> newResponse = await Client.AddProfileLinkAsync(user.Id, newProfileLink);
if (newResponse.StatusCode == HttpStatusCode.OK && newResponse.Result != null)
if (newResponse.StatusCode == HttpStatusCode.Created && newResponse.Result != null)
{
model.Links.Add(newResponse.Result);
ModelState.Clear();
Expand Down

0 comments on commit b84fdb9

Please sign in to comment.