Skip to content

Commit

Permalink
INTGW-1240 fix new version email send issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinda96 committed Dec 23, 2020
1 parent 35183d0 commit 26e718b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public boolean execute(RequestContext context, String currentState, String targe
notificationService.sendApiProviderEmail(context);
}


return superExecuted;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,10 @@ public boolean validateIsNotNewApiVersion(RequestContext context) {

private API getApiDetails(RequestContext context)throws Exception{

try {
GenericArtifactManager artifactManager = APIUtil.getArtifactManager(context.getSystemRegistry(),
APIConstants.API_KEY);
String artifactId = context.getResource().getUUID();
GenericArtifact apiArtifact = artifactManager.getGenericArtifact(artifactId);
return APIUtil.getAPI(apiArtifact);

}catch (Exception e){
log.error("Failed to get request context api details ", e);
throw e;
}

}
}

0 comments on commit 26e718b

Please sign in to comment.