Skip to content

Commit

Permalink
Remove obsolete call to get user groups of product
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Guldborg committed Nov 23, 2023
1 parent b74fa82 commit a018228
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public async Task<ChangedProductResponse> UpdateProduct(UpdateProductRequest cha

await _context.SaveChangesAsync();

var existingUserGroups = _context.ProductUserGroups.Where(e => e.ProductId == changedProduct.Id);
var existingUserGroups = product.ProductUserGroup;

_context.RemoveRange(existingUserGroups);

Expand Down

0 comments on commit a018228

Please sign in to comment.