[Workplace Search] Fix bug with updating a role mapping (#99688)
`id` is not needed by the server as a body prop, as it’s inferred from the params.
This commit is contained in:
parent
fcc2ac5799
commit
0b5d323613
|
@ -66,10 +66,7 @@ export function registerOrgRoleMappingRoute({
|
|||
{
|
||||
path: '/api/workplace_search/org/role_mappings/{id}',
|
||||
validate: {
|
||||
body: schema.object({
|
||||
...roleMappingBaseSchema,
|
||||
id: schema.string(),
|
||||
}),
|
||||
body: schema.object(roleMappingBaseSchema),
|
||||
params: schema.object({
|
||||
id: schema.string(),
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue