mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
database agnostic cleanup query
This commit is contained in:
@@ -194,7 +194,7 @@ public class AdminREST extends AbstractResourceREST {
|
||||
@Path("/cleanup")
|
||||
@GET
|
||||
public Response cleanup() {
|
||||
int deleted = cleaner.cleanOlderThan(30, TimeUnit.DAYS);
|
||||
long deleted = cleaner.cleanOlderThan(30, TimeUnit.DAYS);
|
||||
return Response.ok("ok: " + deleted).build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user