diff --git a/src/datasources/db/providerAPI.ts b/src/datasources/db/providerAPI.ts index d43541e..dacece9 100644 --- a/src/datasources/db/providerAPI.ts +++ b/src/datasources/db/providerAPI.ts @@ -127,7 +127,7 @@ export class ProviderAPI extends DataSource { .execute(); await entityManager.getRepository(Provider) .createQueryBuilder('provider') - .relation(Provider, 'cargoBikes') + .relation(Provider, 'cargoBikeIds') .of(inserts.identifiers[0].id) .add(provider.cargoBikeIds); }); diff --git a/src/schema/type-defs.ts b/src/schema/type-defs.ts index ef743d4..768b457 100644 --- a/src/schema/type-defs.ts +++ b/src/schema/type-defs.ts @@ -737,7 +737,7 @@ export default gql` "(dt. Anbieter)" input ProviderCreateInput { - formName: String! + formName: String privatePersonId: ID organisationId: ID cargoBikeIds: [ID!]