Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mauberti-bc committed Aug 16, 2024
1 parent e7eaeca commit e7ce6a4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/src/paths/taxonomy/taxon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const GET: Operation = [findTaxonBySearchTerms()];

GET.apiDoc = {
description: 'Find taxon records by search criteria.',
tags: ['taxon_id'],
tags: ['taxonomy'],
security: [
{
Bearer: []
Expand Down
2 changes: 1 addition & 1 deletion api/src/paths/taxonomy/taxon/tsn/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const GET: Operation = [getTaxonByTSN()];

GET.apiDoc = {
description: 'Get taxon records by TSN ids.',
tags: ['taxon_id'],
tags: ['taxonomy'],
security: [
{
Bearer: []
Expand Down
4 changes: 2 additions & 2 deletions api/src/repositories/search-index-repository.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ describe('SearchIndexRepository', () => {
feature_property_type_name: 'number',
feature_property_id: 3,
feature_property_type_id: 2,
name: 'taxon_id',
name: 'taxonomy',
display_name: 'Taxonomy Id',
description: 'The taxonomy Id associated to the record',
parent_feature_property_id: null,
Expand Down Expand Up @@ -392,7 +392,7 @@ describe('SearchIndexRepository', () => {
feature_property_type_name: 'number',
feature_property_id: 3,
feature_property_type_id: 2,
name: 'taxon_id',
name: 'taxonomy',
display_name: 'Taxonomy Id',
description: 'The taxonomy Id associated to the record',
parent_feature_property_id: null,
Expand Down
5 changes: 3 additions & 2 deletions api/src/services/itis-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class ItisService {
* Returns the parent hierarchy for multiple TSNs
*
* @param {number[]} tsnIds
* @return {*} {Promise<ItisSolrSearchResponse[]>}
* @return {*} {Promise<TSNWithHierarchy[]>}
* @memberof ItisService
*/
async getHierarchyForTSNs(tsnIds: number[]): Promise<TSNWithHierarchy[]> {
Expand All @@ -110,6 +110,7 @@ export class ItisService {
* Cleans up the ITIS search response data
*
* @param {ItisSolrSearchResponse[]} data
* @return {*} {Promise<TaxonSearchResult[]>}
* @memberof ItisService
*/
_sanitizeItisData = (data: ItisSolrSearchResponse[]): TaxonSearchResult[] => {
Expand Down Expand Up @@ -187,7 +188,7 @@ export class ItisService {
}

/**
* Get the ITIS SOLR search-by-tsn URL with hierarchy
* Get the ITIS SOLR search-by-tsn URL for hierarchy information
*
* @param {number[]} tsnIds
* @return {*} {Promise<string>}
Expand Down

0 comments on commit e7ce6a4

Please sign in to comment.