immich/server/src
David Bourgault 9870ad9687
fix(server): adjust type of person.birthDate (#16628)
The API currently does not respect the documentation when returning a
person's birthDate. The doc/swagger says it will be of "YYYY-MM-DD"
format but the string is a full ISO8601-with-tz string. This causes
issue #16216 because the <input> tag is strict about supported value
formats.

I believe this was introduced by #15242 which switched some queries from
TypeORM to Kysely for the person repository. TypeORM does not parse
date, but our Kysely configuration does (explicitely).

This commits updates the types to represent both possibilities and ensure
the API always returns the correct format.
2025-03-09 21:32:05 -05:00
..
bin refactor: database repository (#16593) 2025-03-06 13:33:24 -05:00
commands refactor(server): user endpoints (#9730) 2024-05-27 05:15:52 +07:00
controllers feat: persistent memories (#15953) 2025-02-21 12:31:37 -06:00
cores refactor: repositories (#16036) 2025-02-11 14:08:13 -05:00
dtos fix(server): adjust type of person.birthDate (#16628) 2025-03-09 21:32:05 -05:00
emails fix: limit width of logo in emails to 100% (#16164) 2025-02-17 17:46:14 +00:00
entities fix(server): adjust type of person.birthDate (#16628) 2025-03-09 21:32:05 -05:00
middleware feat: sync implementation for the user entity (#16234) 2025-02-20 23:37:57 -05:00
migrations refactor: database repository (#16593) 2025-03-06 13:33:24 -05:00
queries refactor: migrate library spec to factories (#16711) 2025-03-08 13:44:36 -05:00
repositories refactor: migrate library spec to factories (#16711) 2025-03-08 13:44:36 -05:00
services fix(server): adjust type of person.birthDate (#16628) 2025-03-09 21:32:05 -05:00
subscribers refactor(server): enums (#11809) 2024-08-15 06:57:01 -04:00
utils fix(server): adjust type of person.birthDate (#16628) 2025-03-09 21:32:05 -05:00
workers fix: increase upload timeout (#15588) 2025-01-25 04:26:52 -06:00
app.module.ts refactor: database repository (#16593) 2025-03-06 13:33:24 -05:00
config.ts refactor: last repository (#16042) 2025-02-11 22:15:56 +00:00
constants.ts refactor: database repository (#16593) 2025-03-06 13:33:24 -05:00
database.ts refactor: migrate library spec to factories (#16711) 2025-03-08 13:44:36 -05:00
db.d.ts refactor: memory stub (#16704) 2025-03-07 16:03:34 -05:00
decorators.ts refactor: last repository (#16042) 2025-02-11 22:15:56 +00:00
enum.ts feat(server): library refresh go brrr (#14456) 2025-03-06 16:00:18 +01:00
main.ts chore(server): print stack in case of worker error (#15632) 2025-01-24 22:45:55 -05:00
types.ts feat: use stream for template migrations (#16700) 2025-03-07 14:30:01 -05:00
validation.spec.ts fix(server): use luxon for maxdate validator (#11651) 2024-08-08 09:02:39 -05:00
validation.ts feat(api): set person color (#15937) 2025-02-07 10:06:58 -05:00