This commit is contained in:
mertalev 2026-04-22 14:28:54 -04:00
parent 5c484fc01a
commit f91baea924
No known key found for this signature in database
GPG Key ID: 0603AE056AA39037
2 changed files with 4 additions and 11 deletions

View File

@ -420,12 +420,6 @@ class SyncPersonDeleteV1 extends createZodDto(SyncPersonDeleteV1Schema) {}
class SyncAssetFaceV1 extends createZodDto(SyncAssetFaceV1Schema) {}
@ExtraModel()
class SyncAssetFaceV2 extends createZodDto(SyncAssetFaceV2Schema) {}
export function syncAssetFaceV2ToV1(faceV2: SyncAssetFaceV2): SyncAssetFaceV1 {
const { deletedAt: _, isVisible: __, ...faceV1 } = faceV2;
return faceV1;
}
@ExtraModel()
class SyncAssetFaceDeleteV1 extends createZodDto(SyncAssetFaceDeleteV1Schema) {}
@ExtraModel()

View File

@ -8,7 +8,6 @@ import {
SyncAckDeleteDto,
SyncAckSetDto,
syncAlbumV2ToV1,
syncAssetFaceV2ToV1,
SyncAssetV2,
SyncItem,
SyncStreamDto,
@ -268,7 +267,7 @@ export class SyncService extends BaseService {
}
}
private async syncAssetsV1() {
private syncAssetsV1(): Promise<void> {
throw new BadRequestException('SyncRequestType.AssetsV1 is deprecated, use SyncRequestType.AssetsV2 instead');
}
@ -286,7 +285,7 @@ export class SyncService extends BaseService {
}
}
private async syncPartnerAssetsV1() {
private syncPartnerAssetsV1(): Promise<void> {
throw new BadRequestException(
'SyncRequestType.PartnerAssetsV1 is deprecated, use SyncRequestType.PartnerAssetsV2 instead',
);
@ -508,7 +507,7 @@ export class SyncService extends BaseService {
}
}
private async syncAlbumAssetsV1() {
private syncAlbumAssetsV1(): Promise<void> {
throw new BadRequestException(
'SyncRequestType.AlbumAssetsV1 is deprecated, use SyncRequestType.AlbumAssetsV2 instead',
);
@ -826,7 +825,7 @@ export class SyncService extends BaseService {
}
}
private async syncAssetFacesV1() {
private syncAssetFacesV1(): Promise<void> {
throw new BadRequestException(
'SyncRequestType.AssetFacesV1 is deprecated, use SyncRequestType.AssetFacesV2 instead',
);