tango-app-api-trax 3.7.82 → 3.7.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-trax",
3
- "version": "3.7.82",
3
+ "version": "3.7.83",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -194,7 +194,7 @@ export const create = async ( req, res ) => {
194
194
  }
195
195
  let answerCount = 0;
196
196
  element.questions.forEach( ( question ) => {
197
- complianceCount += Math.max( ...question.answers.map( ( o ) => o?.complianceScore ?? Math.max( o?.matchedCount ?? 0, o?.notMatched ?? 0 ) ) );
197
+ complianceCount += Math.max( ...question.answers.map( ( o ) => o?.complianceScore ?? Math.max( o?.matchedCount ?? 0, o?.notMatchedCount ?? 0 ) ) );
198
198
  if ( question.answers.some( ( a ) => a.runAI ) ) {
199
199
  answerCount += 1;
200
200
  }
@@ -1003,7 +1003,7 @@ export const update = async ( req, res ) => {
1003
1003
  }
1004
1004
  let answerCount=0;
1005
1005
  element.questions.forEach( ( question ) => {
1006
- complianceCount += Math.max( ...question.answers.map( ( o ) => o?.complianceScore ?? Math.max( o?.matchedCount ?? 0, o?.notMatched ?? 0 ) ) );
1006
+ complianceCount += Math.max( ...question.answers.map( ( o ) => o?.complianceScore ?? Math.max( o?.matchedCount ?? 0, o?.notMatchedCount ?? 0 ) ) );
1007
1007
  if ( question.answers.some( ( a ) => a.runAI ) ) {
1008
1008
  answerCount += 1;
1009
1009
  }