Updated logging

This commit is contained in:
Alan Grainger
2024-10-30 14:43:26 +01:00
parent b191442d4b
commit ffe26f1806
4 changed files with 16 additions and 10 deletions
+2
View File
@@ -1,5 +1,6 @@
import { Asset, AssetType, ImageSize, SharedLink } from './types'
import dayjs from 'dayjs'
import { log } from './index'
class Immich {
/**
@@ -37,6 +38,7 @@ class Immich {
link.assets = link.assets.filter(x => !x.isTrashed)
if (link.expiresAt && dayjs(link.expiresAt) < dayjs()) {
// This link has expired
log('Expired link ' + key)
} else {
return link
}