We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 883b967 commit 31c8f40Copy full SHA for 31c8f40
1 file changed
src/serverFunctions/callGMap.ts
@@ -43,13 +43,7 @@ export const callGMap = async (data: GMapCommand): Promise<CallGMapDistances> =>
43
throw new Error('Not authorized')
44
}
45
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
+ await trackAPIRequestFromHeaders(requestHeaders, 'callGMap')
53
54
55
const R = 6371e3 // metres
0 commit comments