mirror of
https://github.com/immich-app/immich.git
synced 2025-01-28 00:59:18 -05:00
Merge branch 'feat/mobile-sync-endpoints' into mobile/stream-sync
This commit is contained in:
commit
f74aceb9d0
1 changed files with 11 additions and 1 deletions
|
@ -54,7 +54,17 @@ export class SyncRepository implements ISyncRepository {
|
|||
|
||||
getAssets({ checkpoint, userId, ...options }: AssetPartnerSyncOptions): Paginated<AssetEntity> {
|
||||
return paginate(this.assetRepository, options, {
|
||||
where: withCheckpoint<AssetEntity>({ ownerId: userId }, 'updatedAt', checkpoint),
|
||||
where: withCheckpoint<AssetEntity>(
|
||||
{
|
||||
ownerId: userId,
|
||||
isVisible: true,
|
||||
},
|
||||
'updatedAt',
|
||||
checkpoint,
|
||||
),
|
||||
relations: {
|
||||
exifInfo: true,
|
||||
},
|
||||
order: {
|
||||
updatedAt: 'ASC',
|
||||
id: 'ASC',
|
||||
|
|
Loading…
Add table
Reference in a new issue