This commit is contained in:
Jonathan Jogenfors 2025-04-15 15:45:02 +02:00
parent cecd9c24a4
commit cfd9155918
3 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,6 @@ export class AssetEntity {
livePhotoVideo!: AssetEntity | null; livePhotoVideo!: AssetEntity | null;
livePhotoVideoId!: string | null; livePhotoVideoId!: string | null;
originalFileName!: string; originalFileName!: string;
sidecarPath!: string | null;
exifInfo?: Exif; exifInfo?: Exif;
tags?: Tag[]; tags?: Tag[];
sharedLinks!: SharedLinkEntity[]; sharedLinks!: SharedLinkEntity[];

View File

@ -39,6 +39,7 @@ export enum AssetFileType {
FULLSIZE = 'fullsize', FULLSIZE = 'fullsize',
PREVIEW = 'preview', PREVIEW = 'preview',
THUMBNAIL = 'thumbnail', THUMBNAIL = 'thumbnail',
SIDECAR = 'sidecar',
} }
export enum AlbumUserRole { export enum AlbumUserRole {

View File

@ -759,7 +759,7 @@ export class MetadataService extends BaseService {
} }
private async processSidecar(id: string, isSync: boolean): Promise<JobStatus> { private async processSidecar(id: string, isSync: boolean): Promise<JobStatus> {
const [asset] = await this.assetRepository.getByIds([id]); const [asset] = await this.assetRepository.getByIds([id], { files: true });
if (!asset) { if (!asset) {
return JobStatus.FAILED; return JobStatus.FAILED;