You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to fix the type error related to admin user updates of the parent organization name, so that we don't have either failed requests or possible security vunerability.
Details
There is a type error related to PR added schema and route #2529, and a missing validation check in the parentOrganizationController.update method.
As noted in the review comment, the handler should include a required field check (id, name, tenantId) at the start, returning a 400 error if any are missing.
The type definition should also follow the pattern used in the insert handler for consistent type safety.
parent organization example:
Salvation army has several listing with local chapters
Action Items
Add a required field checker to parentOrganizationController.update for id, name, and tenantId
Update the type definition to align with the insert handler pattern
Test the update endpoint for both valid and invalid inputs
Overview
We need to fix the type error related to admin user updates of the parent organization name, so that we don't have either failed requests or possible security vunerability.
Details
parentOrganizationController.updatemethod.As noted in the review comment, the handler should include a required field check (
id,name,tenantId) at the start, returning a 400 error if any are missing.The type definition should also follow the pattern used in the
inserthandler for consistent type safety.parent organization example:
Salvation army has several listing with local chapters
Action Items
parentOrganizationController.updateforid,name, andtenantIdinserthandler patternExample Implementation
Resources/Instructions