Skip to content

Commit

Permalink
[+/-] refactor: removed extra spaces and debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
VenuChoudhary001 committed Aug 24, 2023
1 parent 79e6ede commit 88dec02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public ResponseEntity<Object> invite(
newRootNode.set(entityName, rootNode);
try {
checkEntityNameInDefinitionManager(entityName);
registryHelper.authorizeInviteEntity(request, entityName);
watch.start(TAG);
String entityId = registryHelper.inviteEntity(newRootNode, "");
registryHelper.autoRaiseClaim(entityName, entityId, "", null, newRootNode, dev.sunbirdrc.registry.Constants.USER_ANONYMOUS);
Expand Down Expand Up @@ -283,7 +284,7 @@ public ResponseEntity<Object> postEntity(
logger.info("Adding entity {}", rootNode);
ResponseParams responseParams = new ResponseParams();
Response response = new Response(Response.API_ID.POST, "OK", responseParams);
logger.info("This is inside response {}",response);

Map<String, Object> result = new HashMap<>();
ObjectNode newRootNode = objectMapper.createObjectNode();
newRootNode.set(entityName, rootNode);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ public String addEntity(JsonNode inputJson, String userId) throws Exception {
}

public String inviteEntity(JsonNode inputJson, String userId) throws Exception {
// System.out.println("lOL");
String entityId = addEntityHandler(inputJson, userId, skipRequiredValidationForInvite, skipSignatureForInvite);
notificationHelper.sendNotification(inputJson, INVITE);
return entityId;
Expand Down

0 comments on commit 88dec02

Please sign in to comment.