Skip to content

Commit 31c8f40

Browse files
committed
fix: useless check
1 parent 883b967 commit 31c8f40

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/serverFunctions/callGMap.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,7 @@ export const callGMap = async (data: GMapCommand): Promise<CallGMapDistances> =>
4343
throw new Error('Not authorized')
4444
}
4545

46-
const name = await trackAPIRequestFromHeaders(requestHeaders, 'callGMap')
47-
if (name !== 'Impact CO2') {
48-
if (name === 'HACK') {
49-
console.error('--- Wrong usage of CallGMAP API ---', { referer })
50-
}
51-
throw new Error('Not authorized')
52-
}
46+
await trackAPIRequestFromHeaders(requestHeaders, 'callGMap')
5347
}
5448

5549
const R = 6371e3 // metres

0 commit comments

Comments
 (0)