Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
Project Page
Commits
5617d9f7
Commit
5617d9f7
authored
Apr 16, 2020
by
Rosanny Sihombing
Browse files
small updates
parent
bc7a6933
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
5617d9f7
/node_modules
sp-project-metadata.xml
sp-project-metadata-m4lab.xml
routes/routes-project.js
View file @
5617d9f7
...
...
@@ -141,7 +141,7 @@ module.exports = function (app, config, passport) {
])
});
app
.
get
(
'
/project
'
,
function
(
req
,
res
)
{
app
.
get
(
'
/project
_
'
,
function
(
req
,
res
)
{
async
.
waterfall
([
// get all projects from projectdb
function
(
done
)
{
...
...
@@ -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
'
,
{
isUserAuthenticated
:
req
.
isAuthenticated
(),
user
:
req
.
user
...
...
@@ -349,7 +349,7 @@ module.exports = function (app, config, passport) {
async
.
waterfall
([
// get userId by email from userdb
function
(
done
)
{
methods
.
getUserIdByEmail
(
req
.
user
.
email
,
function
(
id
,
err
)
{
methods
.
getUserIdByEmail
(
req
.
user
.
email
,
function
(
id
,
err
)
{
// TO BE FIXED
if
(
!
err
)
{
userId
=
id
done
(
err
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment