Unfortunately, this fix doesn't resolve issue – the inner join on tree_tag means that each record is a distinct combination of capture record and tree tag record, so captures with multiple tags are repeated.
Further, the count clause is not working properly and any tag selection returns the same count.
Reverts Greenstand/treetracker-admin-api#611
Unfortunately, this fix doesn't resolve issue – the inner join on
tree_tag
means that each record is a distinct combination of capture record and tree tag record, so captures with multiple tags are repeated. Further, the count clause is not working properly and any tag selection returns the same count.