[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:
Scotty Bollinger 2021-05-10 17:30:57 -05:00 committed by GitHub
parent fcc2ac5799
commit 0b5d323613
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),
}),