parent
26beaf4742
commit
dd1f79401f
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "immich-public-proxy",
|
"name": "immich-public-proxy",
|
||||||
"version": "1.1.1",
|
"version": "1.2.0",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "ts-node src/index.ts",
|
"dev": "ts-node src/index.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 dayjs from 'dayjs'
|
||||||
import { log } from './index'
|
import { log } from './index'
|
||||||
|
|
||||||
@ -35,6 +35,7 @@ class Immich {
|
|||||||
} else {
|
} else {
|
||||||
// Filter assets to exclude trashed assets
|
// Filter assets to exclude trashed assets
|
||||||
link.assets = link.assets.filter(asset => !asset.isTrashed)
|
link.assets = link.assets.filter(asset => !asset.isTrashed)
|
||||||
|
// Populate the shared assets with the public key
|
||||||
link.assets.forEach(asset => { asset.key = key })
|
link.assets.forEach(asset => { asset.key = key })
|
||||||
return link
|
return link
|
||||||
}
|
}
|
||||||
|
@ -20,10 +20,6 @@ export interface SharedLink {
|
|||||||
expiresAt: string | null;
|
expiresAt: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Album {
|
|
||||||
assets: Asset[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum ImageSize {
|
export enum ImageSize {
|
||||||
thumbnail = 'thumbnail',
|
thumbnail = 'thumbnail',
|
||||||
original = 'original'
|
original = 'original'
|
||||||
|
Loading…
Reference in New Issue
Block a user