resolve merge conflict
This commit is contained in:
@ -19,7 +19,7 @@ function hotRank(timeValue, rank) {
|
|||||||
*/
|
*/
|
||||||
var hotness;
|
var hotness;
|
||||||
var z = Math.log(rank) / Math.log(10);
|
var z = Math.log(rank) / Math.log(10);
|
||||||
hotness = z + (timeValue / 45000000);
|
hotness = z + (timeValue / 172800000);
|
||||||
return hotness;
|
return hotness;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -94,12 +94,15 @@ exports.getEmailSignup = function(req, res) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
exports.postEmailSignup = function(req, res, next) {
|
exports.postEmailSignup = function(req, res, next) {
|
||||||
var errors = req.validationErrors();
|
|
||||||
|
|
||||||
if (errors) {
|
|
||||||
req.flash('errors', errors);
|
req.assert('email', 'valid email required').isEmail();
|
||||||
return res.redirect('/email-signup');
|
var errors = req.validationErrors();
|
||||||
}
|
|
||||||
|
if (errors) {
|
||||||
|
req.flash('errors', errors);
|
||||||
|
return res.redirect('/email-signup');
|
||||||
|
}
|
||||||
|
|
||||||
var possibleUserData = req.body;
|
var possibleUserData = req.body;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user