Skip to content

Commit 88dec02

Browse files
[+/-] refactor: removed extra spaces and debug statements
1 parent 79e6ede commit 88dec02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

java/registry/src/main/java/dev/sunbirdrc/registry/controller/RegistryEntityController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public ResponseEntity<Object> invite(
8989
newRootNode.set(entityName, rootNode);
9090
try {
9191
checkEntityNameInDefinitionManager(entityName);
92+
registryHelper.authorizeInviteEntity(request, entityName);
9293
watch.start(TAG);
9394
String entityId = registryHelper.inviteEntity(newRootNode, "");
9495
registryHelper.autoRaiseClaim(entityName, entityId, "", null, newRootNode, dev.sunbirdrc.registry.Constants.USER_ANONYMOUS);
@@ -283,7 +284,7 @@ public ResponseEntity<Object> postEntity(
283284
logger.info("Adding entity {}", rootNode);
284285
ResponseParams responseParams = new ResponseParams();
285286
Response response = new Response(Response.API_ID.POST, "OK", responseParams);
286-
logger.info("This is inside response {}",response);
287+
287288
Map<String, Object> result = new HashMap<>();
288289
ObjectNode newRootNode = objectMapper.createObjectNode();
289290
newRootNode.set(entityName, rootNode);

java/registry/src/main/java/dev/sunbirdrc/registry/helper/RegistryHelper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ public String addEntity(JsonNode inputJson, String userId) throws Exception {
251251
}
252252

253253
public String inviteEntity(JsonNode inputJson, String userId) throws Exception {
254-
// System.out.println("lOL");
255254
String entityId = addEntityHandler(inputJson, userId, skipRequiredValidationForInvite, skipSignatureForInvite);
256255
notificationHelper.sendNotification(inputJson, INVITE);
257256
return entityId;

0 commit comments

Comments
 (0)