Skip to content

Commit

Permalink
Filter id values from other endpoint responses #535
Browse files Browse the repository at this point in the history
  • Loading branch information
GopiGugan committed Sep 17, 2024
1 parent af038b2 commit e23b7c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dbmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ class DBManager {
}

get_tips() {
return this.db_.collection($COLLECTION__TIPS).find().toArray()
return this.db_.collection($COLLECTION__TIPS).find({}, { projection: { _id: 0 } }).toArray()
}

get_df() {
return this.db_.collection($COLLECTION__DF_TREE).find().toArray();
return this.db_.collection($COLLECTION__DF_TREE).find({}, { projection: { _id: 0 } }).toArray();
}

get_xbb_df() {
return this.db_.collection($COLLECTION__XBB_TREE).find().toArray();
return this.db_.collection($COLLECTION__XBB_TREE).find({}, { projection: { _id: 0 } }).toArray();
}

get_regionMap() {
Expand Down Expand Up @@ -214,7 +214,7 @@ class DBManager {
}

get_recombinantTips() {
return this.db_.collection($COLLECTION__RECOMBINANT_TIPS).find().toArray().then((docs,err)=>{
return this.db_.collection($COLLECTION__RECOMBINANT_TIPS).find({}, { projection: { _id: 0 } }).toArray().then((docs,err)=>{
if(err){
console.log(`dbmanager::get_recombinantTips error`,err)
return;
Expand Down

0 comments on commit e23b7c7

Please sign in to comment.