Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalii-bezuhlyi committed Nov 18, 2024
1 parent b831dc2 commit 1639a97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Apps.Magento/Actions/BlockActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public async Task<BlockResponse> UpdateBlockAsync([ActionParameter] BlockIdentif

var request = new ApiRequest($"/rest/V1/cmsBlock/{identifier.BlockId}", Method.Put, Creds)
.AddBody(new { block });
return await Client.ExecuteWithErrorHandling<BlockResponse>(request);
var blockResponse = await Client.ExecuteWithErrorHandling<BlockResponse>(request);
return await GetBlockAsync(new() { BlockId = blockResponse.Id });
}

[Action("Update block from HTML", Description = "Update block with specified data from HTML")]
Expand Down

0 comments on commit 1639a97

Please sign in to comment.