immich/server/src/utils
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
..
access.ts feat(web): manual face tagging and deletion (#16062) 2025-02-21 09:58:25 -06:00
asset.util.ts refactor: last repository (#16042) 2025-02-11 22:15:56 +00:00
bytes.ts refactor: infra folder (#8138) 2024-03-20 23:15:09 -04:00
config.ts refactor: last repository (#16042) 2025-02-11 22:15:56 +00:00
database.ts refactor: database repository (#16593) 2025-03-06 13:33:24 -05:00
date.ts fix(server): adjust type of person.birthDate (#16628) 2025-03-09 21:32:05 -05:00
file.ts refactor(server): replace switch statement in sendFile with Record lookup (#16630) 2025-03-06 12:46:37 +01:00
lifecycle.ts refactor(server): version logic (#9615) 2024-05-20 20:31:36 -04:00
logger.ts refactor: test mocks (#16008) 2025-02-11 00:47:42 +01:00
media.ts refactor: migrate media repository (#15536) 2025-01-22 22:11:07 +00:00
mime-types.spec.ts feat: add support for JPEG 2000 (#15710) 2025-01-28 23:27:28 +00:00
mime-types.ts feat: add support for JPEG 2000 (#15710) 2025-01-28 23:27:28 +00:00
misc.spec.ts feat(server): library refresh go brrr (#14456) 2025-03-06 16:00:18 +01:00
misc.ts feat(server): library refresh go brrr (#14456) 2025-03-06 16:00:18 +01:00
object.ts fix(server): skip smtp validation if unchanged (#12111) 2024-08-29 14:10:09 -04:00
pagination.ts refactor: download service (#16600) 2025-03-05 08:38:23 -05:00
preferences.ts refactor(server): narrow auth types (#16066) 2025-02-12 15:23:08 -05:00
replace-template-tags.ts feat: Notification Email Templates (#13940) 2024-12-04 20:26:02 +00:00
request.ts feat: tags (#11980) 2024-08-29 12:14:03 -04:00
response.ts refactor(server): auth enums (#13552) 2024-10-17 13:17:32 -04:00
set.ts refactor: infra folder (#8138) 2024-03-20 23:15:09 -04:00
sync.ts refactor: use new updateId column for user CUD sync (#16384) 2025-02-27 09:22:02 -05:00
tag.ts refactor: migration tag repository to kysely (#16398) 2025-03-03 18:41:19 +00:00