Skip to content

Commit

Permalink
chore(api): graphql is now in API v2.2, not beta (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores authored Jun 7, 2022
1 parent f5b12ae commit 8eb2147
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/Shared/Services/Api.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -402,7 +402,7 @@ export class ApiService {
graphql<T>(query: string): Observable<T> {
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 {
Expand Down

0 comments on commit 8eb2147

Please sign in to comment.