Skip to content

Commit

Permalink
(HP-2023) Renamed reportGraphQlErrors to reportErrorsToSentry
Browse files Browse the repository at this point in the history
The default exported function has the same name
  • Loading branch information
NikoHelle committed Oct 23, 2023
1 parent e944e6d commit 82696c1
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/gdprApi/actions/deleteProfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import parseDeleteProfileResult, {
DeleteResultLists,
} from '../../profile/helpers/parseDeleteProfileResult';
import { convertStringToTranslationLanguage } from '../../profile/helpers/createServiceConnectionsQueryVariables';
import reportErrorsToSentry from '../../common/sentry/reportGraphQlErrors';
import reportErrorsToSentry from '../../common/sentry/reportErrorsToSentry';

const DELETE_PROFILE = loader('../graphql/GdprDeleteMyProfileMutation.graphql');

Expand Down
2 changes: 1 addition & 1 deletion src/gdprApi/actions/deleteServiceConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
getStoredKeycloakAuthCode,
getStoredTunnistamoAuthCode,
} from './authCodeParser';
import reportErrorsToSentry from '../../common/sentry/reportGraphQlErrors';
import reportErrorsToSentry from '../../common/sentry/reportErrorsToSentry';

const DELETE_SERVICE_DATA = loader('../graphql/GdprDeleteServiceData.graphql');

Expand Down
2 changes: 1 addition & 1 deletion src/gdprApi/actions/getDownloadData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
getStoredKeycloakAuthCode,
getStoredTunnistamoAuthCode,
} from './authCodeParser';
import reportErrorsToSentry from '../../common/sentry/reportGraphQlErrors';
import reportErrorsToSentry from '../../common/sentry/reportErrorsToSentry';

const DOWNLOAD_MY_PROFILE = loader(
'../../profile/graphql/DownloadMyProfileQuery.graphql'
Expand Down
2 changes: 1 addition & 1 deletion src/gdprApi/actions/getServiceConnections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
getData,
} from '../../common/actionQueue/actionQueue';
import { getActionResultAndErrorMessage } from './utils';
import reportErrorsToSentry from '../../common/sentry/reportGraphQlErrors';
import reportErrorsToSentry from '../../common/sentry/reportErrorsToSentry';

const GDPR_SERVICE_CONNECTIONS = loader(
'../graphql/GdprServiceConnectionsQuery.graphql'
Expand Down
2 changes: 1 addition & 1 deletion src/profile/components/deleteProfile/DeleteProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import useAuthCodeQueues, {
} from '../../../gdprApi/useAuthCodeQueues';
import config from '../../../config';
import { getDeleteProfileResult } from '../../../gdprApi/actions/deleteProfile';
import reportErrorsToSentry from '../../../common/sentry/reportGraphQlErrors';
import reportErrorsToSentry from '../../../common/sentry/reportErrorsToSentry';

const SERVICE_CONNECTIONS = loader(
'../../graphql/ServiceConnectionsQuery.graphql'
Expand Down
2 changes: 1 addition & 1 deletion src/profile/context/ProfileContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { ProfileRoot } from '../../graphql/typings';
import getVerifiedPersonalInformation from '../helpers/getVerifiedPersonalInformation';
import { useProfileQuery, QueryResult } from '../hooks/useProfileQuery';
import parseGraphQLError from '../helpers/parseGraphQLError';
import reportErrorsToSentry from '../../common/sentry/reportGraphQlErrors';
import reportErrorsToSentry from '../../common/sentry/reportErrorsToSentry';

type ContextProps = {
children: React.ReactNode | React.ReactNode[] | null;
Expand Down

0 comments on commit 82696c1

Please sign in to comment.