From c6a4b4e3e995833fb94fd8910662b7e1e2f18317 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sun, 4 Dec 2022 20:04:48 -0800 Subject: [PATCH] days: remove rootid from response --- lib/Db/TimelineQueryDays.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Db/TimelineQueryDays.php b/lib/Db/TimelineQueryDays.php index 1120a37a..b712f300 100644 --- a/lib/Db/TimelineQueryDays.php +++ b/lib/Db/TimelineQueryDays.php @@ -266,9 +266,6 @@ trait TimelineQueryDays } foreach ($day as &$row) { - // We don't need date taken (see query builder) - unset($row['datetaken']); - // Convert field types $row['fileid'] = (int) $row['fileid']; $row['isvideo'] = (int) $row['isvideo']; @@ -303,6 +300,10 @@ trait TimelineQueryDays // All transform processing $this->processFace($row); + + // We don't need these fields + unset($row['datetaken']); + unset($row['rootid']); } return $day;