Skip to content

Commit

Permalink
add lat long back
Browse files Browse the repository at this point in the history
  • Loading branch information
bryzettler committed Nov 2, 2023
1 parent dd0843a commit 04954c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/metadata-service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ function locationAttributes(
{ trait_type: `${name}_city`, value: info.city },
{ trait_type: `${name}_state`, value: info.state },
{ trait_type: `${name}_country`, value: info.country },
{ trait_type: `${name}_lat`, value: info.lat },
{ trait_type: `${name}_long`, value: info.long },
];
}

Expand Down
8 changes: 8 additions & 0 deletions packages/metadata-service/src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export class MobileHotspotInfo extends Model {
declare city: string;
declare state: string;
declare country: string;
declare lat: number;
declare long: number;
declare is_active: boolean;
declare device_type: string;
}
Expand All @@ -72,6 +74,8 @@ MobileHotspotInfo.init(
is_active: DataTypes.BOOLEAN,
device_type: DataTypes.JSONB,
location: DataTypes.DECIMAL.UNSIGNED,
lat: DataTypes.DECIMAL(8, 6),
long: DataTypes.DECIMAL(9, 6),
dc_onboarding_fee_paid: DataTypes.DECIMAL.UNSIGNED,
},
{
Expand All @@ -90,6 +94,8 @@ export class IotHotspotInfo extends Model {
declare city: string;
declare state: string;
declare country: string;
declare lat: number;
declare long: number;
declare is_active: boolean;
}

Expand All @@ -105,6 +111,8 @@ IotHotspotInfo.init(
country: DataTypes.STRING,
is_active: DataTypes.BOOLEAN,
location: DataTypes.DECIMAL.UNSIGNED,
lat: DataTypes.DECIMAL(8, 6),
long: DataTypes.DECIMAL(9, 6),
dc_onboarding_fee_paid: DataTypes.DECIMAL.UNSIGNED,
elevation: DataTypes.NUMBER,
gain: DataTypes.NUMBER,
Expand Down

0 comments on commit 04954c5

Please sign in to comment.