resolve merge conflict, favoring upstream

This commit is contained in:
Nathan Leniz
2015-03-28 17:41:07 +09:00
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.uncompletedCoursewares.splice(index, 1);
} }
req.user.save(function (err, user, next) { exports.completedBasejump = function (req, res, next) {
if (err) { var isCompletedWith = req.body.bonfireInfo.completedWith || undefined;
return next(err); 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) { if (user) {
res.send(true); res.send(true);
} }
}); };
}; };
exports.completedZiplineOrBasejump = function (req, res, next) { 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 challengeName = !{JSON.stringify(name)};
var passedCoursewareName = challengeName; var passedCoursewareName = challengeName;
var started = Math.floor(Date.now()); var started = Math.floor(Date.now());
.col-xs-12.col-sm-12.col-md-8 .col-xs-12.col-sm-12.col-md-8
#mainEditorPanel #mainEditorPanel
form.code form.code