mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(server): accept showAt and hideAt for creating memories (#26429)
* fix(server): accept showAt and hideAt for creating memories * fix history
This commit is contained in:
@@ -233,7 +233,7 @@ export const ValidateHexColor = () => {
|
||||
};
|
||||
|
||||
type DateOptions = OptionalOptions & { optional?: boolean; format?: 'date' | 'date-time' };
|
||||
export const ValidateDate = (options?: DateOptions & ApiPropertyOptions) => {
|
||||
export const ValidateDate = (options?: DateOptions & PropertyOptions) => {
|
||||
const {
|
||||
optional,
|
||||
nullable = false,
|
||||
@@ -243,7 +243,7 @@ export const ValidateDate = (options?: DateOptions & ApiPropertyOptions) => {
|
||||
} = options || {};
|
||||
|
||||
return applyDecorators(
|
||||
ApiProperty({ format, ...apiPropertyOptions }),
|
||||
Property({ format, ...apiPropertyOptions }),
|
||||
IsDate(),
|
||||
optional ? Optional({ nullable, emptyToNull }) : IsNotEmpty(),
|
||||
Transform(({ key, value }) => {
|
||||
|
||||
Reference in New Issue
Block a user