Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
fix(trigger): invalid responses total variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jhdcruz committed Nov 25, 2024
1 parent dccd93b commit e1aef13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trigger/generate-summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const generateSummary = task({
},
{
role: 'user',
content: `Here are ratings score from the evaluation: Partners gave a score of ${ratings?.partners?.score ?? 0}% from ${count.partners} partners, ${ratings?.implementers?.score ?? 0}% from ${count.implementers} for implementers, and ${ratings?.beneficiaries?.score ?? 0}% from ${count.beneficiaries} for beneficiaries. Totaling to ${ratings?.total} total score across ${count.implementers + count.partners + count.beneficiaries} responses.`,
content: `Here are ratings score from the evaluation: Partners gave a score of ${ratings?.partners?.score ?? 0}% from ${count.partners} partners, ${ratings?.implementers?.score ?? 0}% from ${count.implementers} for implementers, and ${ratings?.beneficiaries?.score ?? 0}% from ${count.beneficiaries} for beneficiaries. Totaling to ${count.total} total score across ${count.implementers + count.partners + count.beneficiaries} responses.`,
},
{
role: 'user',
Expand Down

0 comments on commit e1aef13

Please sign in to comment.