Compare commits
1 Commits
postgres-q
...
feat/sidec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cfd9155918 |
@@ -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[];
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user