Skip to content

Commit 63794b5

Browse files
Fix ncit synonym to name comparison
1 parent 14c6109 commit 63794b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ncit/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,13 +477,13 @@ const uploadFile = async ({
477477

478478
// add the synonyms as alias records
479479
for (const synonym of synonyms) {
480-
logger.verbose(`- processing synonym ${synonym.toLowerCase()}`);
481-
482480
// Skipping synonym if equal to the record's name
483-
if (synonym.toLowerCase() === name) {
481+
if (synonym.toLowerCase() === name.toLowerCase()) {
484482
continue;
485483
}
486484

485+
logger.verbose(`- processing synonym ${synonym.toLowerCase()}`);
486+
487487
try {
488488
// alias Therapy|Disease|AnatomicalEntity node record
489489
const alias = await conn.addRecord({

0 commit comments

Comments
 (0)