From 85976704fb9670de73320c662242f303652563f5 Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Tue, 10 Nov 2020 11:26:07 +0100 Subject: [PATCH] bug: providerId in cargoBikeUpdate --- src/model/CargoBike.ts | 1 + src/schema/type-defs.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/model/CargoBike.ts b/src/model/CargoBike.ts index 67a3661..7518945 100644 --- a/src/model/CargoBike.ts +++ b/src/model/CargoBike.ts @@ -197,6 +197,7 @@ export class CargoBike implements Lockable { @ManyToOne(type => Provider, provider => provider.cargoBikeIds, { nullable: true }) + @JoinColumn({ name: 'providerId' }) providerId: number; @OneToMany(type => BikeEvent, bikeEvent => bikeEvent.cargoBikeId, { diff --git a/src/schema/type-defs.ts b/src/schema/type-defs.ts index 99027da..c6fc11a 100644 --- a/src/schema/type-defs.ts +++ b/src/schema/type-defs.ts @@ -117,13 +117,13 @@ input CargoBikeUpdateInput { dimensionsAndLoad: DimensionsAndLoadUpdateInput """ Refers to equipment that is not unique. See kommentierte info tabelle -> Fragen -> Frage 2 - If set, ols realtions will be over written. Set [] to delete all + If set, ols relations will be over written. Set [] to delete all """ equipmentTypeIds: [ID] "Sticker State" stickerBikeNameState: StickerBikeNameState note: String - provider: String + providerId: ID insuranceData: InsuranceDataUpdateInput taxes: TaxesUpdateInput "will keep Bike locked if set to true, default = false"