Skip to content

Commit

Permalink
fix: switch isLatitude & isLongitude validators (#513)
Browse files Browse the repository at this point in the history
Close #502
  • Loading branch information
vschoener committed Mar 26, 2020
1 parent c27500b commit 5497179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decorator/decorators.ts
Expand Up @@ -280,7 +280,7 @@ export function IsLatLong(validationOptions?: ValidationOptions): PropertyDecora
export function IsLatitude(validationOptions?: ValidationOptions): PropertyDecorator {
return function (object: Object, propertyName: string) {
const args: ValidationMetadataArgs = {
type: ValidationTypes.IS_LONGITUDE,
type: ValidationTypes.IS_LATITUDE,
target: object.constructor,
propertyName: propertyName,
validationOptions: validationOptions
Expand All @@ -295,7 +295,7 @@ export function IsLatitude(validationOptions?: ValidationOptions): PropertyDecor
export function IsLongitude(validationOptions?: ValidationOptions): PropertyDecorator {
return function (object: Object, propertyName: string) {
const args: ValidationMetadataArgs = {
type: ValidationTypes.IS_LATITUDE,
type: ValidationTypes.IS_LONGITUDE,
target: object.constructor,
propertyName: propertyName,
validationOptions: validationOptions
Expand Down

0 comments on commit 5497179

Please sign in to comment.