Skip to content

Commit

Permalink
Fix for org not found in user signup
Browse files Browse the repository at this point in the history
  • Loading branch information
karthik-tarento committed Jul 6, 2022
1 parent e09fe3f commit 7a8b7fe
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,18 @@ public void initiateCreateUserFlow(String registrationCode) {
userReg.setSbOrgId(orgId);
LOGGER.info(String.format("Auto on-boarded organisation with Name: %s, MapId: %s, OrgId: %s",
userReg.getOrgName(), userReg.getMapId(), userReg.getSbOrgId()));
// TODO - Need to find a best way to give time for org creation takes effect.
try {
Thread.sleep(1000);
} catch (Exception e) {
}
} else {
try {
LOGGER.error("Failed to auto onboard organisation. Error: "
+ (new ObjectMapper()).writeValueAsString(orgResponse));
} catch (Exception e) {
}
return;
}
}

Expand Down

0 comments on commit 7a8b7fe

Please sign in to comment.