Skip to content

Commit

Permalink
fix: contemplate rawJson might be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
GPaoloni committed Sep 9, 2024
1 parent e3d1439 commit 0f1de4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const convertContactToContactDocument = ({
transcript,
twilioWorkerId,
content: JSON.stringify(rawJson),
isDataContact: Object.values(dataCallTypes).includes(rawJson.callType),
isDataContact: Object.values(dataCallTypes).includes(rawJson?.callType),

Check failure on line 71 in hrm-domain/packages/hrm-search-config/convertToIndexDocument.ts

View workflow job for this annotation

GitHub Actions / service-tests

Argument of type 'string | undefined' is not assignable to parameter of type 'string'.

Check failure on line 71 in hrm-domain/packages/hrm-search-config/convertToIndexDocument.ts

View workflow job for this annotation

GitHub Actions / unit-tests

Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
// high_boost_global: '', // highBoostGlobal.join(' '),
// low_boost_global: '', // lowBoostGlobal.join(' '),
};
Expand Down

0 comments on commit 0f1de4b

Please sign in to comment.