Skip to content

Commit 5497179

Browse files
authored
fix: switch isLatitude & isLongitude validators (#513)
Close #502
1 parent c27500b commit 5497179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/decorator/decorators.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export function IsLatLong(validationOptions?: ValidationOptions): PropertyDecora
280280
export function IsLatitude(validationOptions?: ValidationOptions): PropertyDecorator {
281281
return function (object: Object, propertyName: string) {
282282
const args: ValidationMetadataArgs = {
283-
type: ValidationTypes.IS_LONGITUDE,
283+
type: ValidationTypes.IS_LATITUDE,
284284
target: object.constructor,
285285
propertyName: propertyName,
286286
validationOptions: validationOptions
@@ -295,7 +295,7 @@ export function IsLatitude(validationOptions?: ValidationOptions): PropertyDecor
295295
export function IsLongitude(validationOptions?: ValidationOptions): PropertyDecorator {
296296
return function (object: Object, propertyName: string) {
297297
const args: ValidationMetadataArgs = {
298-
type: ValidationTypes.IS_LATITUDE,
298+
type: ValidationTypes.IS_LONGITUDE,
299299
target: object.constructor,
300300
propertyName: propertyName,
301301
validationOptions: validationOptions

0 commit comments

Comments
 (0)