From da4be5e6d5c872e7dd2e29e5a838f3f2c4520630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 17 Jun 2019 23:10:26 +0200 Subject: Add background job to cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/SessionService.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/Service/SessionService.php') diff --git a/lib/Service/SessionService.php b/lib/Service/SessionService.php index b4eb393dd..b7be301ef 100644 --- a/lib/Service/SessionService.php +++ b/lib/Service/SessionService.php @@ -88,7 +88,11 @@ class SessionService { }, $sessions); } - public function removeInactiveSessions($documentId) { + public function findAllInactive() { + return $this->sessionMapper->findAllInactive(); + } + + public function removeInactiveSessions($documentId = -1) { return $this->sessionMapper->deleteInactive($documentId); } -- cgit v1.2.3