Skip to content

Commit

Permalink
some fixes for windows and a bug that's been around a while...
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmadewell committed Feb 4, 2015
1 parent 622ae3b commit 85570f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: ./heroku/web
web: bash ./heroku/web
4 changes: 2 additions & 2 deletions optimlol_api/common/mongoCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module.exports = function() {
if (cachedData) {
var cacheLastUpdated = moment().diff(cachedData.updated_at, 'minutes');
_logger.debug("Cached " + collection + " object is " + cacheLastUpdated + " minutes old.", "Expire time is", cachedData.expiredTimeMinutes);
returnData.data = cachedData;

returnData.data = cachedData.data;
if (cacheLastUpdated < cachedData.expiredTimeMinutes || cachedData.expiredTimeMinutes === -1) {
returnData.isExpired = false;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = function() {
}
})
.fail(function(error) {
_logger.warn("Some failure when setting cache", error);
_logger.warn("Some failure when setting summoner cache", error);
_getSummonerByNameApi(region, summonerName, deferred);
});

Expand Down

0 comments on commit 85570f0

Please sign in to comment.