fix: make github url optional for backend projects (#37936)
parent
01b37f664f
commit
a8a7eeb10d
|
@ -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:
|
||||
|
|
|
@ -18,7 +18,7 @@ const options = {
|
|||
solution: 'url',
|
||||
githubLink: 'url'
|
||||
},
|
||||
required: ['solution', 'githubLink']
|
||||
required: ['solution']
|
||||
};
|
||||
|
||||
export class ProjectForm extends Component {
|
||||
|
|
Loading…
Reference in New Issue