Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
ESDP_froot.kz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
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
ESDP_froot.kz
ESDP_froot.kz
Commits
4a7c0604
Commit
4a7c0604
authored
May 22, 2021
by
Elena Tsoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#84
внесены изменения в contentlinks.js
parent
c9bfcfb9
Pipeline
#346
passed with stages
in 2 minutes and 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
contentlinks.js
api/app/contentlinks.js
+4
-0
No files found.
api/app/contentlinks.js
View file @
4a7c0604
...
...
@@ -56,8 +56,12 @@ const createRouter = () => {
};
try
{
const
contentlinks
=
await
Contentlink
.
find
(
filter
).
populate
(
'user'
,
'surname name workEmail'
);;
if
(
process
.
env
.
NODE_ENV
!==
'test'
)
{
const
contentlinksByUsers
=
await
helpers
.
buildContentlinksReportExcelFile
(
contentlinks
);
res
.
send
(
contentlinksByUsers
);
}
else
{
res
.
send
(
contentlinks
)
}
}
catch
(
error
)
{
res
.
status
(
500
).
send
(
error
);
}
...
...
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