Commit 6cf84833 authored by Karoly Erdos's avatar Karoly Erdos
Browse files

Add more checks for the taxonomy validation

parent 2a4036c0
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment