Skip to content

Commit

Permalink
Merge pull request #504 from kagemomiji/issue497-fix-star-rest-api
Browse files Browse the repository at this point in the history
#497 fix star rest api
  • Loading branch information
kagemomiji committed Jun 15, 2024
2 parents e68efb1 + b1ef393 commit 8583b58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 2 additions & 3 deletions airsonic-main/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-core</artifactId>
<version>4.2.25</version>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-jmx</artifactId>
<version>4.2.25</version>
<version>4.2.26</version>
</dependency>
<!-- END Metrics -->

Expand Down Expand Up @@ -726,7 +725,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>3.3.2</version>
<version>3.4.0</version>
</plugin>
</plugins>
</reporting>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1485,13 +1485,12 @@ private void starOrUnstar(HttpServletRequest request, HttpServletResponse respon
}
}
for (int artistId : getIntParameters(request, "artistId")) {
if (artistService.starOrUnstar(artistId, username, star)) {
writeEmptyResponse(request, response);
} else {
if (!artistService.starOrUnstar(artistId, username, star)) {
error(request, response, ErrorCode.NOT_FOUND, "Artist not found: " + artistId);
return;
}
}
writeEmptyResponse(request, response);
}

@RequestMapping({"/getStarred", "/getStarred.view"})
Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@
<artifactId>lucene-backward-codecs</artifactId>
<version>${lucene.version}</version>
</dependency>
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-core</artifactId>
<version>4.2.26</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down

0 comments on commit 8583b58

Please sign in to comment.