Skip to content

Commit f979a9f

Browse files
Schmang134estgirlcmlooffRuliwrTrineMedina
committed
Reworked github commit display to only run if a link is in the database.
Co-authored-by: Abigail Gerig <[email protected]> Co-authored-by: Christian Looff <[email protected]> Co-authored-by: Ruli Warner-Rosen <[email protected]> Co-authored-by: Trine Medina <[email protected]>
1 parent c6a654c commit f979a9f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

server/controllers/initController.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ initController.gitURL = (req, res, next) => {
4545
const parameter = [req.body.githubUrl]
4646
db.query2(`SELECT github_url FROM containers where name = $1`, parameter)
4747
.then((data) => {
48-
if (!data.rows[0]) return next();
4948
res.locals.url = data;
5049
return next();
5150
})

0 commit comments

Comments
 (0)