Update FE case to match BE graphql case (camelCase) (#154)

This commit is contained in:
Charles Bochet
2023-05-29 19:45:55 +02:00
committed by GitHub
parent de9cf61689
commit 2f50cdc07e
27 changed files with 200 additions and 204 deletions
@@ -41,16 +41,16 @@ export function PeopleCompanyCell({ people }: OwnProps) {
variables: {
id: newCompanyId,
name: companyName,
domain_name: companyDomainName,
domainName: companyDomainName,
address: '',
created_at: new Date().toISOString(),
createdAt: new Date().toISOString(),
},
});
await updatePeople({
variables: {
...mapToGqlPerson(people),
company_id: newCompanyId,
companyId: newCompanyId,
},
});
} catch (error) {
@@ -86,7 +86,7 @@ export function PeopleCompanyCell({ people }: OwnProps) {
await updatePeople({
variables: {
...mapToGqlPerson(people),
company_id: relation.id,
companyId: relation.id,
},
});
}}