Skip to content

Commit

Permalink
(Rest): Added status for mysubsciption in component.
Browse files Browse the repository at this point in the history
Signed-off-by: Nikesh kumar <[email protected]>
  • Loading branch information
Nikesh kumar committed Mar 5, 2024
1 parent 737a132 commit 62cc542
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,9 @@ public ResponseEntity<CollectionModel<EntityModel<Component>>> getMySubscription
resources.add(EntityModel.of(embeddedComponent));
});

CollectionModel<EntityModel<Component>> finalResources = CollectionModel.of(resources);
return new ResponseEntity<>(finalResources, HttpStatus.OK);
CollectionModel<EntityModel<Component>> finalResources = restControllerHelper.createResources(resources);
HttpStatus status = finalResources == null ? HttpStatus.NO_CONTENT : HttpStatus.OK;
return new ResponseEntity<>(finalResources, status);
}

@Operation(
Expand Down

0 comments on commit 62cc542

Please sign in to comment.