Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xpub-epmc
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Literature-services
public-projects
xpub-epmc
Commits
7a606370
Commit
7a606370
authored
6 years ago
by
Yogmatee Roochun
Browse files
Options
Downloads
Patches
Plain Diff
solved issues with email, manuscript status change, erroneaous files on ftp
parent
aad4602a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!110
Dev
,
!109
Shared data model
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
server/ftp-integration/taggedXML.js
+11
-7
11 additions, 7 deletions
server/ftp-integration/taggedXML.js
server/ftp-integration/toTaggers.js
+9
-5
9 additions, 5 deletions
server/ftp-integration/toTaggers.js
server/utils/files.js
+0
-1
0 additions, 1 deletion
server/utils/files.js
with
20 additions
and
13 deletions
server/ftp-integration/taggedXML.js
+
11
−
7
View file @
7a606370
...
...
@@ -39,13 +39,17 @@ const watcher = chokidar.watch(`${rootPath}**/*.tar.gz`, {
},
})
process
.
on
(
'
uncaughtException
'
,
err
=>
{
if
(
err
.
submitter
)
{
bulkUploaderEmail
(
err
.
submitter
.
email
,
err
.
message
)
}
errorDevEmail
(
err
)
logger
.
error
(
'
whoops! there was an error
'
,
err
.
stack
)
})
process
.
on
(
'
uncaughtException
'
,
err
=>
{
if
(
err
.
submitter
)
{
bulkUploaderEmail
(
err
.
submitter
.
email
,
err
.
message
)
}
errorDevEmail
(
err
)
logger
.
error
(
'
whoops! there was an error
'
,
err
.
stack
)
})
.
on
(
'
unhandledRejection
'
,
reason
=>
{
logger
.
error
(
`Unhandled Rejection at:
${
reason
.
stack
||
reason
}
`
)
})
watcher
.
on
(
'
add
'
,
path
=>
logger
.
debug
(
`File
${
path
}
has been added.`
))
...
...
This diff is collapsed.
Click to expand it.
server/ftp-integration/toTaggers.js
+
9
−
5
View file @
7a606370
...
...
@@ -298,11 +298,15 @@ function compress(tmpPath, manuscript, datedFolder) {
})
}
process
.
on
(
'
uncaughtException
'
,
err
=>
{
errorDevEmail
(
err
)
logger
.
error
(
'
whoops! there was an error
'
,
err
.
stack
)
// tidyUp()
})
process
.
on
(
'
uncaughtException
'
,
err
=>
{
errorDevEmail
(
err
)
logger
.
error
(
'
whoops! there was an error
'
,
err
.
stack
)
// tidyUp()
})
.
on
(
'
unhandledRejection
'
,
reason
=>
{
logger
.
error
(
`Unhandled Rejection at:
${
reason
.
stack
||
reason
}
`
)
})
function
tidyUp
(
tmpPath
)
{
try
{
...
...
This diff is collapsed.
Click to expand it.
server/utils/files.js
+
0
−
1
View file @
7a606370
...
...
@@ -131,7 +131,6 @@ module.exports.moveErroneousFile = function moveErroneousFile(
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
filename
=
path
.
basename
(
filepath
)
const
oldPath
=
filepath
const
newPath
=
`
${
errorFolder
}
/
${
filename
}
_
${
Date
.
now
()}
`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment