Skip to content

Commit

Permalink
[feature-72-BE-products-in-organization] changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
berki0 committed Apr 2, 2024
1 parent 604e2ed commit 904f197
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ private void throwExceptionIfOrganizationNotOwner(UUID organizationId, Product p

private void moveQuantityFromResourcesInProductToResourcesInOrganization(Product product) {
List<ResourceInProduct> resourcesInProduct = product.getResourcesContent();
deleteAllResourcesInProduct(resourcesInProduct);
resourcesInProduct.forEach(
resourceInProduct -> {
logger.info(
Expand All @@ -290,9 +289,6 @@ private void moveQuantityFromResourcesInProductToResourcesInOrganization(Product
});
product.setResourcesContent(null);
}
private void deleteAllResourcesInProduct(List<ResourceInProduct> resources){
resources.forEach(resourceInProductRepository::delete);
}

@Override
public Object fetchEntity(Object... ids) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ class ProductInOrganizationServiceTest {

@BeforeEach
void setUp() {

User user = UserTestHelper.createSecondTestUser();
organization = OrganizationTestHelper.getTestOrganization();
Resource resource = ResourceTestHelper.getPearl();
Expand Down

0 comments on commit 904f197

Please sign in to comment.