diff --git a/src/app/schemas/proteomics.ts b/src/app/schemas/proteomics.ts index 9e050ceaa..dc0eda47e 100644 --- a/src/app/schemas/proteomics.ts +++ b/src/app/schemas/proteomics.ts @@ -37,7 +37,7 @@ ProteomicsSchema.index( { hgnc_symbol: 'text', ensembl_gene_id: 'text', - uniqid: 'text', + tissue: 'text', uniprotid: 'text' } ); diff --git a/src/server/routes/api.ts b/src/server/routes/api.ts index ffc5e076b..43416fb30 100644 --- a/src/server/routes/api.ts +++ b/src/server/routes/api.ts @@ -223,7 +223,7 @@ connection.once('open', () => { log2fc: { $ne: null } } ] - }).lean().exec(async (err, genes: Proteomics[]) => { + }).exec(async (err, genes: Proteomics[]) => { if (err) { next(err); } else {