Skip to content

Commit

Permalink
fix(annotation-server): delete unsed method
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Jul 16, 2022
1 parent cb6a11f commit ad08e78
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions annotation-server/src/medications/medications.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,28 +242,4 @@ export class MedicationsService {
});
});
}

private async findIdsMatching(search: string): Promise<number[]> {
const queryRes = await this.medicationRepository
.createQueryBuilder('medication')
.select([
'medication.id',
'medication.name',
'medication.description',
'medication.drugclass',
'medication.indication',
])
.leftJoinAndSelect(
MedicationSearchView,
'searchView',
'searchView.id = medication.id',
)
.where('searchView.searchString ilike :searchString', {
searchString: `%${search}%`,
})
.orderBy('searchView.priority', 'ASC')
.getMany();

return queryRes.map((e) => e.id);
}
}

0 comments on commit ad08e78

Please sign in to comment.