Skip to content

Commit

Permalink
Switching weather location
Browse files Browse the repository at this point in the history
  • Loading branch information
hgorges committed Sep 10, 2024
1 parent 46c8ddb commit aeff258
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/middleware/google-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ export async function redirectToGoogle(
redirectUri,
});

console.log(
oauth2Client.generateAuthUrl({
access_type: 'offline',
scope: SCOPES,
}),
);
res.redirect(
oauth2Client.generateAuthUrl({
access_type: 'offline',
Expand Down
3 changes: 2 additions & 1 deletion src/models/weatherModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ const weatherModel = {
return null;
}

const gps = isHome ? user.home_gps : user.work_gps;
// Get the GPS coordinates of the user's destination (not current location)
const gps = isHome ? user.work_gps : user.home_gps;

const dateIsoString = new Date().toISOString().substring(0, 10);
const response = await axios.get(
Expand Down

0 comments on commit aeff258

Please sign in to comment.