diff --git a/packages/backend/declarations/index.d.ts b/packages/backend/declarations/index.d.ts index 59fe487..e20674e 100644 --- a/packages/backend/declarations/index.d.ts +++ b/packages/backend/declarations/index.d.ts @@ -6,8 +6,8 @@ declare module 'iplocation' { country?: string; countryCode?: string; isp?: string; - lat: number; - lon: number; + latitude: number; + longitude: number; org?: string; query?: string; region?: string; diff --git a/packages/backend/src/location.ts b/packages/backend/src/location.ts index 081ed02..c09f81a 100644 --- a/packages/backend/src/location.ts +++ b/packages/backend/src/location.ts @@ -30,7 +30,7 @@ export async function locate(ip: string): Promise> { return resolve(null); } - const { lat, lon } = result; + const { latitude: lat, longitude: lon } = result; const location = { lat, lon } as Location; cache.set(ip, location);