From 56e0ebb36cb425b711f161f12a39431d9e2c2f19 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Wed, 26 Jun 2024 14:25:11 -0700 Subject: [PATCH] Sendtry log --- .../assessment/assessment-cslft-repository-v2.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/api/repositories/assessment/assessment-cslft-repository-v2.ts b/src/api/repositories/assessment/assessment-cslft-repository-v2.ts index b281697c..c9fcc3ad 100644 --- a/src/api/repositories/assessment/assessment-cslft-repository-v2.ts +++ b/src/api/repositories/assessment/assessment-cslft-repository-v2.ts @@ -4,6 +4,9 @@ import { Knex } from "knex"; import { clone, isEmpty, sum, sumBy } from "lodash"; import moment from "moment"; + +import * as Sentry from "@sentry/node"; + export class AssessmentCslftRepositoryV2 { readonly db; @@ -1142,7 +1145,11 @@ async function calculateFamilySize( hasParent2 = true; } - console.log("PARENT INFO", parentInfo, hasParent1, hasParent2) + console.log("PARENT INFO", parentInfo, hasParent1, hasParent2); + + Sentry.captureMessage(`PARENT INFO, ${parentInfo}, ${hasParent1}, ${hasParent2}`) + + family.total_dependants = 1 + parentDeps.length; family.csl_dependants = 1;