Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit d28b047

Browse files
committed
Merge pull request #371 from Ghost141/dev
Quick fix for rss api.
2 parents ec8db5e + be9a8f0 commit d28b047

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

actions/rss.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,17 @@ function getChallengesRSS(api, connection, next) {
113113
},
114114
function (cb) {
115115
if (!_.isUndefined(technologies)) {
116-
helper.getCatalogCachedValue(technologies.split(','), dbConnectionMap, 'technologies', cb);
116+
helper.getCatalogCachedValue(technologies.split(',').map(function (s) { return s.toLowerCase().toString(); }), dbConnectionMap, 'technologies', cb);
117117
} else {
118118
cb(null, null);
119119
}
120120
},
121121
function (id, cb) {
122-
if (_.isDefined(techId)) {
122+
if (_.isDefined(id)) {
123123
techId = id;
124124
}
125125
if (!_.isUndefined(platforms)) {
126-
helper.getCatalogCachedValue(platforms.split(','), dbConnectionMap, 'platforms', cb);
126+
helper.getCatalogCachedValue(platforms.split(',').map(function (s) { return s.toLowerCase().toSource(); }), dbConnectionMap, 'platforms', cb);
127127
} else {
128128
cb(null, null);
129129
}

0 commit comments

Comments
 (0)