mirror of
https://github.com/immich-app/immich.git
synced 2025-03-04 02:11:44 -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> {
|
getAssets({ checkpoint, userId, ...options }: AssetPartnerSyncOptions): Paginated<AssetEntity> {
|
||||||
return paginate(this.assetRepository, options, {
|
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: {
|
order: {
|
||||||
updatedAt: 'ASC',
|
updatedAt: 'ASC',
|
||||||
id: 'ASC',
|
id: 'ASC',
|
||||||
|
|
Loading…
Add table
Reference in a new issue