Skip to content

Commit 33d0c81

Browse files
committed
fix: lint on error message log
1 parent c4fdf14 commit 33d0c81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/decorator/string/IsPhoneNumber.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ export function IsPhoneNumber(
7373
validate: (value, args): boolean => isPhoneNumber(value, args?.constraints[0], checkedNumberTypes),
7474
defaultMessage: buildMessage(
7575
eachPrefix =>
76-
eachPrefix + '$property must be a valid phone number of the following types' + checkedNumberTypes,
76+
eachPrefix +
77+
'$property must be a valid phone number and of the following types: ' +
78+
checkedNumberTypes.toString(),
7779
validationOptions
7880
),
7981
},

0 commit comments

Comments
 (0)