Skip to content

Commit

Permalink
fixing missing string literal and new line character
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewevans0102 committed Sep 9, 2019
1 parent 1c9048e commit 3005e4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lambda.js
Expand Up @@ -73,7 +73,7 @@ exports.handler = async function(event, context) {

// NOAA Metadata
const NOAAMetadata = await axios
.get("https://api.weather.gov/points/" + latitude + "," + longitude)
.get(`https://api.weather.gov/points/${latitude},${longitude}`)
.catch(error => {
console.log(error);
return;
Expand Down Expand Up @@ -126,6 +126,7 @@ exports.handler = async function(event, context) {
`wind: ${currentWeather.data.wind.speed.toFixed(0)} MPH\n` +
`sunrise: ${sunrise} AM\n` +
`sunset: ${sunset} PM\n` +
"\n" +
`forecast: ${NOAAWeeklyForecast.data.properties.periods[0].detailedForecast}\n` +
"\n" +
"Have a good day! 🎉🎉 🎉 🎉";
Expand Down

0 comments on commit 3005e4a

Please sign in to comment.