Commit 5617d9f7 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

small updates

parent bc7a6933
/node_modules /node_modules
sp-project-metadata.xml sp-project-metadata.xml
sp-project-metadata-m4lab.xml
...@@ -141,7 +141,7 @@ module.exports = function (app, config, passport) { ...@@ -141,7 +141,7 @@ module.exports = function (app, config, passport) {
]) ])
}); });
app.get('/project', function (req, res) { app.get('/project_', function (req, res) {
async.waterfall([ async.waterfall([
// get all projects from projectdb // get all projects from projectdb
function(done) { function(done) {
...@@ -194,7 +194,7 @@ module.exports = function (app, config, passport) { ...@@ -194,7 +194,7 @@ module.exports = function (app, config, passport) {
]) ])
}) })
app.get('/project_', function (req, res) { app.get('/project', function (req, res) {
res.render(lang+'/project/project-simplified', { res.render(lang+'/project/project-simplified', {
isUserAuthenticated: req.isAuthenticated(), isUserAuthenticated: req.isAuthenticated(),
user: req.user user: req.user
...@@ -349,7 +349,7 @@ module.exports = function (app, config, passport) { ...@@ -349,7 +349,7 @@ module.exports = function (app, config, passport) {
async.waterfall([ async.waterfall([
// get userId by email from userdb // get userId by email from userdb
function(done) { function(done) {
methods.getUserIdByEmail(req.user.email, function(id, err) { methods.getUserIdByEmail(req.user.email, function(id, err) { // TO BE FIXED
if (!err) { if (!err) {
userId = id userId = id
done(err) done(err)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment