c2-clinical 1.0.210 → 1.0.211

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.
@@ -58,7 +58,9 @@ class ProcessAnswerFlowTester {
58
58
  }
59
59
  // check minValue e maxValue
60
60
  if (relationed.typeAnswer === enum_1.TypeAnswerEnum.OPEN_NUMBER) {
61
- const validations = [];
61
+ const validations = [
62
+ ...(relationed.validations?.filter((v) => !v.auto) ?? [])
63
+ ];
62
64
  if (!isNaN(Number(relationed.minValue)) &&
63
65
  Number(relationed.answer) < Number(relationed.minValue)) {
64
66
  validations.push({
@@ -80,7 +82,7 @@ class ProcessAnswerFlowTester {
80
82
  });
81
83
  }
82
84
  if (validations.length) {
83
- relationed.validations = [...relationed.validations, ...validations];
85
+ relationed.validations = [...validations];
84
86
  }
85
87
  }
86
88
  // check options is enables
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.210",
3
+ "version": "1.0.211",
4
4
  "description": "Biblioteca Typescript para API NodeJS",
5
5
  "repository": {
6
6
  "type": "git",