Skip to content

Commit

Permalink
feat(graphql-api): improve warning message in ClinVar query
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyhgrant committed Nov 19, 2024
1 parent ae90291 commit 7561fbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion graphql-api/src/queries/clinvar-variant-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const _fetchClinvarReleaseDate = async (esClient: any) => {
const releaseDates = metadata.map((m) => m.table_globals.clinvar_release_date)

if (releaseDates[0] !== releaseDates[1]) {
logger.error({ message: 'ClinVar release dates do not match' })
logger.error({
message: `ClinVar release dates do not match. GRCh38: ${releaseDates[1]}, GRCh37: ${releaseDates[0]}`,
})
}

return releaseDates[0]
Expand Down

0 comments on commit 7561fbe

Please sign in to comment.