Skip to content

Commit

Permalink
fix: add prop65 alias
Browse files Browse the repository at this point in the history
  • Loading branch information
sanoel committed Aug 1, 2023
1 parent af612b8 commit adccd11
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@qlever-llc/target-helper",
"version": "1.6.2",
"version": "1.6.3",
"description": "A Trellis microservice to fill in around Target integration",
"author": "Andrew Balmos <andrew@qlever.io>",
"license": "Apache-2.0",
Expand Down
1 change: 1 addition & 0 deletions src/conversions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const conversions: Record<string, Conversion> = {
name: 'California Prop 65 Statement',
urlName: 'ca-prop-65-statements',
type: 'application/vnd.trellisfw.ca-prop-65-statement.1+json',
alternativeUrlNames: ['california-proposition-65-statements'],
},
'Country of Origin Statement': {
name: 'Country of Origin Statement',
Expand Down
6 changes: 6 additions & 0 deletions src/pdfJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@ export const jobHandler: WorkerFunction = async (job, { jobId, log, oada }) => {
// Note: One day we might officially separate "identification" from "transcription". This is almost that.
// TODO: Reconsider this as it doesn't really work well with jobs created outside of the helper watches
if (
// Added the 'unidentified' check to stop doing this flow for misidentified
// documents coming through e.g. fl-sync. Theres just too much cross over of
// one doc type used to satisfy another doc type. e.g. we may ask a product label to be extract it
// and target may recognize it as nutrition information because it contains both. This condition
// lets us continue doing this for jobs specifically coming in as unidentified
job.config['oada-doc-type'] === 'unidentified' &&
job.config['oada-doc-type'] !== documentType &&
!matchesAlternateUrlNames(
job.config['oada-doc-type'],
Expand Down

0 comments on commit adccd11

Please sign in to comment.