Skip to content

Commit

Permalink
fix: pass options to isBase64 correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
braaar committed Jan 17, 2025
1 parent b38afac commit 0098995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decorator/string/IsBase64.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function IsBase64(
name: IS_BASE64,
constraints: [options],
validator: {
validate: (value, args): boolean => isBase64(value, options),
validate: (value, args): boolean => isBase64(value, args?.constraints[0]),
defaultMessage: buildMessage(eachPrefix => eachPrefix + '$property must be base64 encoded', validationOptions),
},
},
Expand Down

0 comments on commit 0098995

Please sign in to comment.