Skip to content

Commit

Permalink
MAP-627 Fix control and restraint bug where old reports store false f… (
Browse files Browse the repository at this point in the history
#679)

* MAP-627 Fix control and restraint bug where old reports store false for restraint

* MAP-627 Fix validation of standing straight arm hold
  • Loading branch information
danbenton-mojdt authored Jan 30, 2024
1 parent 19dbd70 commit 5d7af5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/config/forms/useOfForceDetailsForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const completeSchema = joi.object({
'STANDING__DOUBLE_WRIST_HOLD',
'STANDING__UNDERHOOK',
'STANDING__WRIST_HOLD',
'STANDING__STRAIGHT_HOLD',
'STANDING__STRAIGHT_ARM_HOLD',
'ON_BACK',
'ON_BACK__STRAIGHT_ARM_HOLD',
'ON_BACK__CONVERSION_TO_RBH',
Expand Down
2 changes: 1 addition & 1 deletion server/services/reportSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const createUseOfForceDetails = (
controlAndRestraintUsed:
details.restraint === undefined || details.restraint
? getRestraintPositions(details.restraintPositions)
: getRestraintPositions(ControlAndRestraintPosition.NONE),
: getRestraintPositions(ControlAndRestraintPosition.NONE.value),

painInducingTechniques: getPainInducingTechniques(details),
handcuffsApplied: details.handcuffsApplied,
Expand Down

0 comments on commit 5d7af5e

Please sign in to comment.