change _id to id everywhere that seems relevant to loopback

This commit is contained in:
Quincy Larson
2015-06-04 13:20:42 -07:00
parent a695daa03f
commit 3654bb7e6f
30 changed files with 288 additions and 288 deletions

View File

@@ -78,7 +78,7 @@ module.exports = {
challengeMapWithIds = {};
Object.keys(challengeMap).forEach(function (key) {
var onlyIds = challengeMap[key].challenges.map(function (elem) {
return elem._id;
return elem.id;
});
challengeMapWithIds[key] = onlyIds;
});
@@ -147,7 +147,7 @@ module.exports = {
return allFieldGuideIds;
} else {
allFieldGuideIds = fieldGuides.map(function (elem) {
return elem._id;
return elem.id;
});
return allFieldGuideIds;
}
@@ -161,7 +161,7 @@ module.exports = {
return {
name: elem.name,
dashedName: elem.dashedName,
id: elem._id
id: elem.id
};
});
return allFieldGuideNames;