From 8eb214780c443b059a5cdb5ae2ff1c23565df1d8 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Tue, 7 Jun 2022 16:32:42 -0400 Subject: [PATCH] chore(api): graphql is now in API v2.2, not beta (#450) --- src/app/Shared/Services/Api.service.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/Shared/Services/Api.service.tsx b/src/app/Shared/Services/Api.service.tsx index bf2d64b72..678327819 100644 --- a/src/app/Shared/Services/Api.service.tsx +++ b/src/app/Shared/Services/Api.service.tsx @@ -46,7 +46,7 @@ import { Rule } from '@app/Rules/Rules'; import { NotificationCategory } from './NotificationChannel.service'; import _ from 'lodash'; -type ApiVersion = 'v1' | 'v2' | 'v2.1' | 'beta'; +type ApiVersion = 'v1' | 'v2' | 'v2.1' | 'v2.2' | 'beta'; export class HttpError extends Error { readonly httpResponse: Response; @@ -402,7 +402,7 @@ export class ApiService { graphql(query: string): Observable { const headers = new Headers(); headers.set('Content-Type', 'application/graphql'); - return this.sendRequest('beta', 'graphql', { method: 'POST', body: query, headers }).pipe(map(resp => resp.json()), concatMap(from), first()); + return this.sendRequest('v2.2', 'graphql', { method: 'POST', body: query, headers }).pipe(map(resp => resp.json()), concatMap(from), first()); } downloadReport(recording: ArchivedRecording): void {