Skip to content

Commit

Permalink
Update src/main/java/co/novu/common/rest/RestHandler.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mayorJAY authored Dec 29, 2023
1 parent fa35749 commit 8d89fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/co/novu/common/rest/RestHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ public <T, R> R extractResponse(Response<T> response, R body) throws NovuNetwork

private String loadSdkVersionFromPom() {
try {
MavenXpp3Reader reader = new MavenXpp3Reader();
InputStream inputStream = this.getClass().getResourceAsStream("/META-INF/maven/co.novu/novu-java/pom.xml");
if (inputStream == null) {
return "";
}
MavenXpp3Reader reader = new MavenXpp3Reader();
Model model = reader.read(new InputStreamReader(inputStream));
return model.getVersion();
} catch (Exception e) {
Expand Down

0 comments on commit 8d89fd9

Please sign in to comment.