mirror of
https://github.com/immich-app/immich.git
synced 2025-12-25 17:24:58 +03:00
fix(server): new full sync return stacked assets individually (#9189)
* fix(server): new full sync return stacked assets individually * return archived partner assets (like old getAllAssets) * fix * fix test --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
committed by
GitHub
parent
77b8c2f330
commit
4d7aa7effd
@@ -44,7 +44,6 @@ describe(SyncService.name, () => {
|
||||
mapAsset(assetStub.hasEncodedVideo, mapAssetOpts),
|
||||
]);
|
||||
expect(assetMock.getAllForUserFullSync).toHaveBeenCalledWith({
|
||||
withStacked: true,
|
||||
ownerId: authStub.user1.user.id,
|
||||
updatedUntil: untilDate,
|
||||
limit: 2,
|
||||
|
||||
@@ -32,10 +32,6 @@ export class SyncService {
|
||||
await this.access.requirePermission(auth, Permission.TIMELINE_READ, userId);
|
||||
const assets = await this.assetRepository.getAllForUserFullSync({
|
||||
ownerId: userId,
|
||||
// no archived assets for partner user
|
||||
isArchived: userId === auth.user.id ? undefined : false,
|
||||
// no stack for partner user
|
||||
withStacked: userId === auth.user.id ? true : undefined,
|
||||
lastCreationDate: dto.lastCreationDate,
|
||||
updatedUntil: dto.updatedUntil,
|
||||
lastId: dto.lastId,
|
||||
|
||||
Reference in New Issue
Block a user