forestbiotech-lab / PHENO-old

nodeJS implementation of Plant Breading API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cleanup - Fix the attributes that where not filled

netbofia opened this issue · comments

If there are multiple records for the same id because of arrays in the results structure retrieved from the DB.

Iteration 1

{
   key: "value"
}

Iteration 1+1

{
   key: ""
}

Iteration n

{
   key: "key"
}

When this happens the values should be removed and leave an empty string "".

Should be done in the cleanup of the retrieved structure.

The specific problem discussed here was addressed the commit mentioned above