resolve merge conflict, favoring upstream

pull/256/head
Nathan Leniz 2015-03-28 17:41:07 +09:00
commit ff94d10aa8
3 changed files with 9 additions and 14 deletions

View File

@ -259,14 +259,18 @@ exports.completedCourseware = function (req, res, next) {
req.user.uncompletedCoursewares.splice(index, 1);
}
req.user.save(function (err, user, next) {
if (err) {
return next(err);
exports.completedBasejump = function (req, res, next) {
var isCompletedWith = req.body.bonfireInfo.completedWith || undefined;
var isCompletedDate = Math.round(+new Date());
var coursewareHash = req.body.coursewareInfo.coursewareHash;
var solutionLink = req.body.coursewareInfo.solutionLink;
if(!solutionLink) {
// flash error and redirect
}
if (user) {
res.send(true);
}
});
};
};
exports.completedZiplineOrBasejump = function (req, res, next) {

View File

@ -1,10 +0,0 @@
[
{
"name": "Status Checker",
"picture": "",
"video": "",
"gitHubLink": "https://github.com/FreeCodeCamp/ZiplineStatusChecker",
"demoLink": "",
"details": []
}
]

View File

@ -49,6 +49,7 @@ block content
var challengeName = !{JSON.stringify(name)};
var passedCoursewareName = challengeName;
var started = Math.floor(Date.now());
.col-xs-12.col-sm-12.col-md-8
#mainEditorPanel
form.code