fix: make github url optional for backend projects (#37936)

pull/36867/head^2
Tom 2019-12-20 08:00:33 -06:00 committed by mrugesh
parent 01b37f664f
commit a8a7eeb10d
2 changed files with 2 additions and 6 deletions

View File

@ -261,11 +261,7 @@ function projectCompleted(req, res, next) {
]);
completedChallenge.completedDate = Date.now();
if (
!completedChallenge.solution ||
// only basejumps require github links
(completedChallenge.challengeType === 4 && !completedChallenge.githubLink)
) {
if (!completedChallenge.solution) {
return res.status(403).json({
type: 'error',
message:

View File

@ -18,7 +18,7 @@ const options = {
solution: 'url',
githubLink: 'url'
},
required: ['solution', 'githubLink']
required: ['solution']
};
export class ProjectForm extends Component {