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