Skip to content

Commit

Permalink
fix: passing options to "IsDateString()" decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimio authored and NoNameProvided committed Nov 20, 2022
1 parent c183cb3 commit 0fed8dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decorator/string/IsDateString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function IsDateString(
name: IS_DATE_STRING,
constraints: [options],
validator: {
validate: (value, args): boolean => isDateString(value),
validate: (value): boolean => isDateString(value, options),
defaultMessage: buildMessage(
eachPrefix => eachPrefix + '$property must be a valid ISO 8601 date string',
validationOptions
Expand Down

0 comments on commit 0fed8dd

Please sign in to comment.