Skip to content

Commit

Permalink
Merge pull request #102 from KeithKelleher/master
Browse files Browse the repository at this point in the history
fix targets.target.publications bug
  • Loading branch information
KeithKelleher authored May 21, 2024
2 parents 5bca730 + c09b9ce commit f0cc118
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pharos-graphql-server",
"version": "3.18.2",
"version": "3.19.4",
"description": "",
"main": "src/index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/models/target/targetDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export class TargetDetails {
}

getPublications() {
const that = this;
const query = this.knex({pubmed: 'ncats_pubmed.pubmed', pp: 'protein2pubmed'})
const query = this.knex({pubmed: 'ncats_pubmed.pubmed', pp: 'protein2pubmed', t2tc: 't2tc'})
.select({
pmid: 'pubmed.id',
gene_id: this.knex.raw('group_concat(pp.gene_id)'),
Expand All @@ -55,7 +54,8 @@ export class TargetDetails {
fetch_date: `fetch_date`
})
.where('pp.pubmed_id', this.knex.raw('pubmed.id'))
.andWhere('pp.protein_id', this.target.protein_id)
.andWhere('pp.protein_id', this.knex.raw('t2tc.protein_id'))
.andWhere('t2tc.target_id', this.target.tcrdid)
.andWhere('pp.source', 'NCBI')
.orderBy('pubmed.date', 'desc')
.groupBy('pubmed.id')
Expand Down
Binary file modified src/pharos_config.sqlite
Binary file not shown.
Binary file modified src/unfiltered_counts.sqlite
Binary file not shown.

0 comments on commit f0cc118

Please sign in to comment.