From eb1f263248166f36f5eb7dc17e39721e80b3e7c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 9 Apr 2024 06:11:36 +0200 Subject: [PATCH] Add created field to findAllIndexed results --- Repository/GoogleTokenRepository.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Repository/GoogleTokenRepository.php b/Repository/GoogleTokenRepository.php index 7c96e72..29b96d2 100644 --- a/Repository/GoogleTokenRepository.php +++ b/Repository/GoogleTokenRepository.php @@ -34,6 +34,7 @@ SELECT b.uid, b.access, b.refresh, + b.created, b.expired, b.cids, b.cmails, @@ -48,6 +49,7 @@ FROM ( a.uid, a.access, a.refresh, + a.created, a.expired, a.cids, a.cmails, @@ -61,6 +63,7 @@ FROM ( t.user_id AS uid, t.access, t.refresh, + t.created, t.expired, GROUP_CONCAT(c.id ORDER BY c.id SEPARATOR "\\n") AS cids, GROUP_CONCAT(c.mail ORDER BY c.id SEPARATOR "\\n") AS cmails, @@ -92,6 +95,7 @@ SQL; ->addScalarResult('uid', 'uid', 'integer') ->addScalarResult('access', 'access', 'string') ->addScalarResult('refresh', 'refresh', 'string') + ->addScalarResult('created', 'created', 'datetime') ->addScalarResult('expired', 'expired', 'datetime') ->addScalarResult('cids', 'cids', 'string') ->addScalarResult('cmails', 'cmails', 'string') @@ -130,6 +134,7 @@ SQL; 'uid' => $token['uid'], 'access' => $token['access'], 'refresh' => $token['refresh'], + 'created' => $token['created'], 'expired' => $token['expired'], 'calendars' => [], 'dances' => [], -- 2.41.1