Fix monitoring: remove OOB conflict, save to DB correctly
This commit is contained in:
@@ -99,7 +99,7 @@ public class ArtistController {
|
||||
@PATCH
|
||||
@Path("/{mbid}/monitor")
|
||||
@Produces(MediaType.TEXT_HTML)
|
||||
public Response updateMonitoring(
|
||||
public TemplateInstance updateMonitoring(
|
||||
@PathParam("mbid") String mbid,
|
||||
@QueryParam("type") String type) {
|
||||
var existing = artistService.findByMbid(mbid)
|
||||
@@ -113,8 +113,7 @@ public class ArtistController {
|
||||
);
|
||||
artistService.updateMonitoring(mbid, flags);
|
||||
var allArtists = artistService.findAll();
|
||||
var listHtml = artistListTemplate.data("artists", allArtists).render();
|
||||
return Response.ok(listHtml + feedReloadScript()).build();
|
||||
return artistListTemplate.data("artists", allArtists);
|
||||
}
|
||||
|
||||
@GET
|
||||
|
||||
Reference in New Issue
Block a user