Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-029
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-029
2023-029
Commits
3c13fb16
Commit
3c13fb16
authored
Aug 31, 2023
by
janithgamage1.ed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update
parent
1bb4a269
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
Project/Backend/Server_Node/controllers/userProgress.controller.js
...ackend/Server_Node/controllers/userProgress.controller.js
+1
-2
Project/Backend/Server_Node/routes/userProgress.routes.js
Project/Backend/Server_Node/routes/userProgress.routes.js
+1
-1
No files found.
Project/Backend/Server_Node/controllers/userProgress.controller.js
View file @
3c13fb16
...
...
@@ -7,7 +7,6 @@ export const getUserSubscribedCurriculums = async (req, res) => {
const
userProgress
=
await
UserProgress
.
find
({
userId
})
.
populate
(
'
curriculumProgress.curriculumId
'
)
.
populate
(
'
curriculumProgress.tutorialProgress.tutorialId
'
)
.
populate
(
'
curriculumProgress.tutorialProgress.taskProgress.taskId
'
);
res
.
status
(
200
).
json
(
userProgress
);
}
catch
(
error
)
{
...
...
Project/Backend/Server_Node/routes/userProgress.routes.js
View file @
3c13fb16
...
...
@@ -4,7 +4,7 @@ import { getUserSubscribedCurriculums, subscribeToCurriculum, updateUserProgress
const
router
=
express
.
Router
();
router
.
get
(
'
/:userId
'
,
getUserSubscribedCurriculums
);
router
.
post
(
'
/
:userId
'
,
subscribeToCurriculum
);
router
.
post
(
'
/
'
,
subscribeToCurriculum
);
router
.
put
(
'
/:userId
'
,
updateUserProgress
);
export
default
router
;
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