Make companies employees type a number (#130)

Make companies employees type a number to be consistent with api
This commit is contained in:
Charles Bochet
2023-05-19 11:53:50 +02:00
committed by GitHub
parent 20bf89ab1e
commit 192b89a7b7
13 changed files with 368 additions and 45 deletions

View File

@ -13,7 +13,7 @@ export const UPDATE_COMPANY = gql`
$account_owner_id: uuid
$created_at: timestamptz
$address: String
$employees: Int
$employees: numeric
) {
update_companies(
where: { id: { _eq: $id } }
@ -52,7 +52,7 @@ export const INSERT_COMPANY = gql`
$account_owner_id: uuid
$created_at: timestamptz
$address: String
$employees: Int
$employees: numeric
) {
insert_companies(
objects: {
@ -79,7 +79,7 @@ export const INSERT_COMPANY = gql`
`;
export const DELETE_COMPANIES = gql`
mutation DeleteCompanies($ids: [uuid]) {
mutation DeleteCompanies($ids: [uuid!]) {
delete_companies(where: { id: { _in: $ids } }) {
returning {
address