Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Corey Sheldon
weather
Commits
6ce12de9
Commit
6ce12de9
authored
May 24, 2017
by
Zac Wood
Browse files
Fixed bad paramenters when cache expired
parent
416bb11c
Changes
1
Show whitespace changes
Inline
Side-by-side
weather/server/methods.js
View file @
6ce12de9
...
...
@@ -49,7 +49,7 @@ function getWeather(location) {
// Data is expired, retrieve again.
console
.
log
(
"
Data Age:
"
+
timeDiff
)
console
.
log
(
"
Cache expired. Retrieving...
"
)
var
weatherData
=
getWeatherFromAPI
(
lati
tude
,
longitude
);
var
weatherData
=
getWeatherFromAPI
(
l
oc
ati
on
.
lat
,
location
.
long
);
// Check if there was an error in the API call.
if
(
weatherData
===
undefined
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment