0
Fork 0
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:
Alex 2024-10-26 01:39:50 -05:00 committed by GitHub
commit f74aceb9d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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',