From dd1f79401fa246309e45efd8f62184b1fea2e09c Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Thu, 31 Oct 2024 13:34:32 +0100 Subject: [PATCH] 1.2.0 Add docker image #1 --- package.json | 2 +- src/immich.ts | 3 ++- src/types.ts | 4 ---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 36fe3ce..b48ee6e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "immich-public-proxy", - "version": "1.1.1", + "version": "1.2.0", "main": "dist/index.js", "scripts": { "dev": "ts-node src/index.ts", diff --git a/src/immich.ts b/src/immich.ts index c310e6b..d21d88d 100644 --- a/src/immich.ts +++ b/src/immich.ts @@ -1,4 +1,4 @@ -import { Album, Asset, AssetType, ImageSize, SharedLink } from './types' +import { Asset, AssetType, ImageSize, SharedLink } from './types' import dayjs from 'dayjs' import { log } from './index' @@ -35,6 +35,7 @@ class Immich { } else { // Filter assets to exclude trashed assets link.assets = link.assets.filter(asset => !asset.isTrashed) + // Populate the shared assets with the public key link.assets.forEach(asset => { asset.key = key }) return link } diff --git a/src/types.ts b/src/types.ts index 65f85b0..b5a9c11 100644 --- a/src/types.ts +++ b/src/types.ts @@ -20,10 +20,6 @@ export interface SharedLink { expiresAt: string | null; } -export interface Album { - assets: Asset[] -} - export enum ImageSize { thumbnail = 'thumbnail', original = 'original'