Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
Add docker image #1
  • Loading branch information
alangrainger committed Oct 31, 2024
1 parent 26beaf4 commit dd1f794
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/immich.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -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
}
Expand Down
4 changes: 0 additions & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ export interface SharedLink {
expiresAt: string | null;
}

export interface Album {
assets: Asset[]
}

export enum ImageSize {
thumbnail = 'thumbnail',
original = 'original'
Expand Down

0 comments on commit dd1f794

Please sign in to comment.