diff --git a/VideoWeb/VideoWeb.UnitTests/packages.lock.json b/VideoWeb/VideoWeb.UnitTests/packages.lock.json index 009ea34942..9042550543 100644 --- a/VideoWeb/VideoWeb.UnitTests/packages.lock.json +++ b/VideoWeb/VideoWeb.UnitTests/packages.lock.json @@ -176,8 +176,8 @@ }, "BookingsApi.Client": { "type": "Transitive", - "resolved": "1.51.12", - "contentHash": "UXzOXlrW/KJ+iN9yMT1xqIyO35cRa1FBR8ph8DNRgd7dR8OjYRi1/GOiNIDIz4s+h21mfeJteaO/PDGG0reMLg==", + "resolved": "2.0.4", + "contentHash": "FAWFvN92KaIvX+1+8jXp+w69mlrTEguctYrIzLAyw8szQnbmdA9Fo3/dbacd57ACl0desyToxBHqPPpoTzGlsA==", "dependencies": { "Microsoft.AspNetCore.Mvc.Core": "2.2.5" } @@ -1976,7 +1976,7 @@ "dependencies": { "AspNetCore.HealthChecks.Redis": "[6.0.4, )", "AspNetCore.HealthChecks.Uris": "[6.0.3, )", - "BookingsApi.Client": "[1.51.12, )", + "BookingsApi.Client": "[2.0.4, )", "Castle.Core": "[5.1.1, )", "FluentValidation.AspNetCore": "[10.4.0, )", "MicroElements.Swashbuckle.FluentValidation": "[5.7.0, )", @@ -2008,7 +2008,7 @@ "videoweb.common": { "type": "Project", "dependencies": { - "BookingsApi.Client": "[1.51.12, )", + "BookingsApi.Client": "[2.0.4, )", "LaunchDarkly.ServerSdk": "[7.0.0, )", "Microsoft.ApplicationInsights": "[2.16.0, )", "Microsoft.ApplicationInsights.AspNetCore": "[2.16.0, )", diff --git a/VideoWeb/VideoWeb/ClientApp/src/app/shared/models/hearing.spec.ts b/VideoWeb/VideoWeb/ClientApp/src/app/shared/models/hearing.spec.ts index 0dbf6600b4..e4377c3d56 100644 --- a/VideoWeb/VideoWeb/ClientApp/src/app/shared/models/hearing.spec.ts +++ b/VideoWeb/VideoWeb/ClientApp/src/app/shared/models/hearing.spec.ts @@ -5,11 +5,6 @@ import { ConferenceStatus, ParticipantResponseVho, Role } from 'src/app/services describe('Hearing', () => { const testData = new ConferenceTestData(); - it('should throw an error if passing an invlid type', () => { - const c = testData.getConferenceFuture(); - expect(() => new Hearing(c)).toThrowError(); - }); - it('should map hearing info', () => { const c = testData.getConferenceDetailFuture(); const hearing = new Hearing(c); diff --git a/VideoWeb/VideoWeb/ClientApp/src/app/shared/models/hearing.ts b/VideoWeb/VideoWeb/ClientApp/src/app/shared/models/hearing.ts index 7617933c2c..3bc66ec825 100644 --- a/VideoWeb/VideoWeb/ClientApp/src/app/shared/models/hearing.ts +++ b/VideoWeb/VideoWeb/ClientApp/src/app/shared/models/hearing.ts @@ -17,13 +17,6 @@ export class Hearing extends HearingBase { constructor(conference: ConferenceResponseVho) { super(); - const isVhResponse = conference instanceof ConferenceResponseVho; - const isParticipantResponse = conference instanceof ConferenceResponse; - - if (!(isVhResponse || isParticipantResponse)) { - throw new Error('Object not a ConferenceResponse or ConferenceResponseVHO'); - } - this.conference = conference; if (conference.participants) { this._participants = this.conference.participants.map(p => new Participant(p)); diff --git a/VideoWeb/VideoWeb/packages.lock.json b/VideoWeb/VideoWeb/packages.lock.json index c25030e28e..3ab276b9c8 100644 --- a/VideoWeb/VideoWeb/packages.lock.json +++ b/VideoWeb/VideoWeb/packages.lock.json @@ -24,9 +24,9 @@ }, "BookingsApi.Client": { "type": "Direct", - "requested": "[1.51.12, )", - "resolved": "1.51.12", - "contentHash": "UXzOXlrW/KJ+iN9yMT1xqIyO35cRa1FBR8ph8DNRgd7dR8OjYRi1/GOiNIDIz4s+h21mfeJteaO/PDGG0reMLg==", + "requested": "[2.0.4, )", + "resolved": "2.0.4", + "contentHash": "FAWFvN92KaIvX+1+8jXp+w69mlrTEguctYrIzLAyw8szQnbmdA9Fo3/dbacd57ACl0desyToxBHqPPpoTzGlsA==", "dependencies": { "Microsoft.AspNetCore.Mvc.Core": "2.2.5" } @@ -1796,7 +1796,7 @@ "videoweb.common": { "type": "Project", "dependencies": { - "BookingsApi.Client": "[1.51.12, )", + "BookingsApi.Client": "[2.0.4, )", "LaunchDarkly.ServerSdk": "[7.0.0, )", "Microsoft.ApplicationInsights": "[2.16.0, )", "Microsoft.ApplicationInsights.AspNetCore": "[2.16.0, )",