Skip to content

Commit

Permalink
log removal
Browse files Browse the repository at this point in the history
  • Loading branch information
matherg committed Dec 11, 2024
1 parent b177270 commit 5abd23e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/utils/publicUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ export const generatePoiData = async (
longitude: number,
latitude: number
): Promise<PoiData> => {
console.log(longitude + "\n" + latitude);

const endpoint = [
"https://api.mapbox.com/geocoding/v5/mapbox.places/",
longitude,
Expand All @@ -62,11 +60,9 @@ export const generatePoiData = async (
".json?types=poi&access_token=",
serverEnv.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN,
].join("");
console.log(endpoint);
const data = await fetch(endpoint)
.then((response) => response.json())
.catch((err) => {
console.log("throwing here?");
throw new TRPCError({
code: "INTERNAL_SERVER_ERROR",
message: "Unexpected error. Please try again.",
Expand Down

0 comments on commit 5abd23e

Please sign in to comment.