From 6aae32e0c8d9bd121b1ab78fb9859ddf7efcbe2a Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Sun, 6 Dec 2020 18:38:06 +0100 Subject: [PATCH] src/datasource/db/providerAPI.ts --- src/datasources/db/providerAPI.ts | 2 +- src/schema/type-defs.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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!]