Skip to content
Snippets Groups Projects
Commit 3c389caa authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Bugfix: Making the job work at all!

parent 719759c0
Branches
No related tags found
No related merge requests found
......@@ -623,11 +623,11 @@ public class UserBean {
}
/**
* Cleanup method. Should be rund daily as a batch job
* Cleanup method. Should be run daily as a batch job
*/
public void deleteAllExpiredUserUuids()
{
em.createNamedQuery("DELETE FROM public.user_uuid WHERE expires_at < now()").executeUpdate();
em.createNativeQuery("DELETE FROM public.user_uuid WHERE expires_at < now()").executeUpdate();
}
public String getMapLayerJSONForUser(VipsLogicUser user)
......
......@@ -52,4 +52,15 @@ public class DeleteAllExpiredUserUuidsTask extends VipsLogicTask{
tec.setCompleteness(1d);
}
@Override
public boolean supportsStatusTracking()
{
return true;
}
@Override
public boolean supportsCompletenessTracking()
{
return true;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment