fix(web) show exif info in public shared (#1283)

* fix(web) show exif in public share page

* Added exif info to return payload'
This commit is contained in:
Alex
2023-01-10 10:03:15 -06:00
committed by GitHub
parent 10ff950bb8
commit 7add754fc3
4 changed files with 16 additions and 13 deletions

View File

@@ -48,7 +48,7 @@ export class ShareCore {
async getSharedLinkById(id: string): Promise<SharedLinkEntity> {
const link = await this.sharedLinkRepository.getById(id);
console.log(link);
if (!link) {
throw new BadRequestException('Shared link not found');
}

View File

@@ -57,10 +57,14 @@ export class SharedLinkRepository implements ISharedLinkRepository {
id: id,
},
relations: {
assets: true,
assets: {
exifInfo: true,
},
album: {
assets: {
assetInfo: true,
assetInfo: {
exifInfo: true,
},
},
},
},