mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
remove many to many relationship between entries and feeds
This commit is contained in:
@@ -256,7 +256,16 @@ public class AdminREST extends AbstractResourceREST {
|
||||
Map<String, Long> map = Maps.newHashMap();
|
||||
map.put("feeds_without_subscriptions",
|
||||
cleaner.cleanFeedsWithoutSubscriptions());
|
||||
map.put("entries_without_feeds", cleaner.cleanEntriesWithoutFeeds());
|
||||
return Response.ok(map).build();
|
||||
}
|
||||
|
||||
@Path("/cleanup/content")
|
||||
@GET
|
||||
@ApiOperation(value = "Content cleanup", notes = "Delete contents without entries")
|
||||
public Response cleanupContents() {
|
||||
Map<String, Long> map = Maps.newHashMap();
|
||||
map.put("contents_without_entries",
|
||||
cleaner.cleanContentsWithoutEntries());
|
||||
return Response.ok(map).build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user