mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 20:36:48 +01:00
b6f18cbe81
* fix(server): Correctly set album start and end dates Currently, the query that retrieves album assets uses `ORDER BY assets.fileCreatedAt DESC`, which makes the existing logic return the start/end dates reversed (with `startDate` being taken from the first asset in the array). Instead of using the index-based approach, this change iterates through assets to get the min/max `fileCreatedAt`. This will avoid any future issues, if the query ordering changes, or becomes customizable (e.g. in case the user prefers to visualize older assets first). * fix: Maintain constant cost and only swap variables if needed |
||
---|---|---|
.. | ||
album.stub.ts | ||
api-key.stub.ts | ||
asset.stub.ts | ||
audit.stub.ts | ||
auth.stub.ts | ||
device.stub.ts | ||
error.stub.ts | ||
face.stub.ts | ||
file.stub.ts | ||
index.ts | ||
library.stub.ts | ||
media.stub.ts | ||
partner.stub.ts | ||
person.stub.ts | ||
search.stub.ts | ||
shared-link.stub.ts | ||
system-config.stub.ts | ||
tag.stub.ts | ||
user-token.stub.ts | ||
user.stub.ts | ||
uuid.stub.ts |