Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nisum-scorecard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Venkaiah Naidu Singamchetty
nisum-scorecard
Commits
3be2110f
Commit
3be2110f
authored
Mar 15, 2024
by
Shiva Komirishetti
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.mynisum.com/vsingamchetty/nisum-scorecard
into initailSetup
parents
81ee36e0
d58cebb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
server.js
server.js
+5
-2
No files found.
server.js
View file @
3be2110f
...
...
@@ -35,7 +35,10 @@ app.get("/employee/:id", (req, res) => {
db
.
collection
(
"employees"
)
.
findOne
({
empId
:
Id
},
{
projection
:
{
_id
:
false
}
})
.
then
((
result
)
=>
{
res
.
send
(
result
);
if
(
!
result
)
res
.
status
(
404
).
json
({
message
:
"Employee not found"
});
else
res
.
send
(
result
);
})
.
catch
((
error
)
=>
res
.
status
(
401
).
send
(
error
));
});
...
...
@@ -109,7 +112,7 @@ app.post("/getreportees", (req, res) => {
{
"empId":10000,
"data":{
"aName":"timesheet",
"aName":"
Approval of
timesheet",
"aId":"D001",
"type":"default",
"score":3,
...
...
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