aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/FilesMetadata
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2023-11-21 21:11:13 -0100
committerMaxence Lange <maxence@artificial-owl.com>2023-11-21 21:11:13 -0100
commite37ab38780f7884829ce20a82f16c0fb8e951329 (patch)
treece42e3238f64effc7a0af20e3bccba006936a1c8 /lib/private/FilesMetadata
parent7c6ee7e71a001a437f98521b217824ff551aa281 (diff)
downloadnextcloud-server-e37ab38780f7884829ce20a82f16c0fb8e951329.tar.gz
nextcloud-server-e37ab38780f7884829ce20a82f16c0fb8e951329.zip
get sync_token on retrieveMetadata()
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private/FilesMetadata')
-rw-r--r--lib/private/FilesMetadata/MetadataQuery.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/FilesMetadata/MetadataQuery.php b/lib/private/FilesMetadata/MetadataQuery.php
index 9c3e63e5e22..aa079c678d7 100644
--- a/lib/private/FilesMetadata/MetadataQuery.php
+++ b/lib/private/FilesMetadata/MetadataQuery.php
@@ -58,6 +58,7 @@ class MetadataQuery implements IMetadataQuery {
*/
public function retrieveMetadata(): void {
$this->queryBuilder->selectAlias($this->alias . '.json', 'meta_json');
+ $this->queryBuilder->selectAlias($this->alias . '.sync_token', 'meta_sync_token');
$this->queryBuilder->leftJoin(
$this->fileTableAlias, MetadataRequestService::TABLE_METADATA, $this->alias,
$this->queryBuilder->expr()->eq($this->fileTableAlias . '.' . $this->fileIdField, $this->alias . '.file_id')