Merge pull request #32 from fLotte-meets-HWR-DB/bug

src/datasource/db/providerAPI.ts
main
leonnicolas 4 years ago committed by GitHub
commit 9119710bf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -127,7 +127,7 @@ export class ProviderAPI extends DataSource {
.execute(); .execute();
await entityManager.getRepository(Provider) await entityManager.getRepository(Provider)
.createQueryBuilder('provider') .createQueryBuilder('provider')
.relation(Provider, 'cargoBikes') .relation(Provider, 'cargoBikeIds')
.of(inserts.identifiers[0].id) .of(inserts.identifiers[0].id)
.add(provider.cargoBikeIds); .add(provider.cargoBikeIds);
}); });

@ -737,7 +737,7 @@ export default gql`
"(dt. Anbieter)" "(dt. Anbieter)"
input ProviderCreateInput { input ProviderCreateInput {
formName: String! formName: String
privatePersonId: ID privatePersonId: ID
organisationId: ID organisationId: ID
cargoBikeIds: [ID!] cargoBikeIds: [ID!]

Loading…
Cancel
Save