finish up adding the slack functionality with a redirect on the chat navbar button
This commit is contained in:
@ -74,14 +74,13 @@ module.exports = {
|
||||
},
|
||||
|
||||
chat: function chat(req, res) {
|
||||
if (req.user) {
|
||||
if (req.user.sentSlackInvite) {
|
||||
if (req.user && req.user.sentSlackInvite) {
|
||||
res.redirect('https://freecode.slack.com/messages/general/');
|
||||
}
|
||||
} else {
|
||||
res.render('resources/chat', {
|
||||
title: "Join our chat room"
|
||||
});
|
||||
}
|
||||
res.render('resources/chat', {
|
||||
title: "Enter Free Code Camp's Chat Rooms"
|
||||
});
|
||||
},
|
||||
|
||||
nonprofitProjectInstructions: function nonprofitProjectInstructions(req, res) {
|
||||
|
Reference in New Issue
Block a user