Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
AIT
biovalidator
Commits
6cf84833
Commit
6cf84833
authored
Nov 14, 2019
by
Karoly Erdos
Browse files
Add more checks for the taxonomy validation
parent
2a4036c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/custom/isvalidtaxonomy.js
src/custom/isvalidtaxonomy.js
+1
-1
No files found.
src/custom/isvalidtaxonomy.js
View file @
6cf84833
...
...
@@ -29,7 +29,7 @@ module.exports = function isValidTaxonomy(ajv) {
if
(
jsonBody
)
{
let
numFound
=
jsonBody
.
length
;
if
(
numFound
===
1
)
{
if
(
numFound
===
1
&&
jsonBody
[
0
][
"
taxId
"
]
&&
jsonBody
[
0
][
"
submittable
"
]
==
"
true
"
)
{
logger
.
log
(
"
debug
"
,
"
Found 1 match!
"
);
resolve
(
true
);
}
else
if
(
numFound
===
0
)
{
...
...
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