Skip to content

Commit

Permalink
Merge pull request #41653 from nextcloud/enh/noid/sync-token-on-retri…
Browse files Browse the repository at this point in the history
…evemetadata

get sync_token on retrieveMetadata()
  • Loading branch information
ArtificialOwl authored Nov 22, 2023
2 parents bc1da2f + e37ab38 commit 8877f9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/FilesMetadata/MetadataQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function __construct(
*/
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')
Expand Down

0 comments on commit 8877f9b

Please sign in to comment.