Skip to content

Commit 1ac1cd5

Browse files
committed
deploysApiOptions
1 parent ff195b8 commit 1ac1cd5

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

static/app/components/versionHoverCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import type {Actor} from 'sentry/types/core';
2020
import type {Organization} from 'sentry/types/organization';
2121
import type {User} from 'sentry/types/user';
2222
import {defined} from 'sentry/utils';
23-
import {deployApiOptions} from 'sentry/utils/deployApiOptions';
23+
import {deploysApiOptions} from 'sentry/utils/deploysApiOptions';
2424
import {uniqueId} from 'sentry/utils/guid';
2525
import {releaseApiOptions} from 'sentry/utils/releaseApiOptions';
2626
import {useRepositories} from 'sentry/utils/useRepositories';
@@ -54,7 +54,7 @@ function VersionHoverCardBody({organization, releaseVersion, projectSlug}: BodyP
5454
isPending: isDeploysLoading,
5555
isError: isDeploysError,
5656
} = useQuery(
57-
deployApiOptions({
57+
deploysApiOptions({
5858
orgSlug: organization.slug,
5959
releaseVersion,
6060
})
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type {Deploy} from 'sentry/types/release';
22
import {apiOptions} from 'sentry/utils/api/apiOptions';
33

4-
export function deployApiOptions({
4+
export function deploysApiOptions({
55
orgSlug,
66
releaseVersion,
77
query,

static/app/views/releases/detail/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import type {
2727
} from 'sentry/types/release';
2828
import {apiOptions} from 'sentry/utils/api/apiOptions';
2929
import {getApiUrl} from 'sentry/utils/api/getApiUrl';
30-
import {deployApiOptions} from 'sentry/utils/deployApiOptions';
30+
import {deploysApiOptions} from 'sentry/utils/deploysApiOptions';
3131
import {useApiQuery} from 'sentry/utils/queryClient';
3232
import {RequestError} from 'sentry/utils/requestError/requestError';
3333
import {useRouteAnalyticsParams} from 'sentry/utils/routeAnalytics/useRouteAnalyticsParams';
@@ -99,7 +99,7 @@ function ReleasesDetail({
9999
isPending: isDeploysPending,
100100
error: deploysError,
101101
} = useQuery({
102-
...deployApiOptions({
102+
...deploysApiOptions({
103103
orgSlug: organization.slug,
104104
releaseVersion: params.release,
105105
query: {project: location.query.project},

static/app/views/releases/utils/useReleaseDeploys.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {useQuery} from '@tanstack/react-query';
22

3-
import {deployApiOptions} from 'sentry/utils/deployApiOptions';
3+
import {deploysApiOptions} from 'sentry/utils/deploysApiOptions';
44
import {useOrganization} from 'sentry/utils/useOrganization';
55
import {useProjectFromSlug} from 'sentry/utils/useProjectFromSlug';
66

@@ -15,7 +15,7 @@ export function useReleaseDeploys({
1515
const project = useProjectFromSlug({organization, projectSlug});
1616

1717
return useQuery({
18-
...deployApiOptions({
18+
...deploysApiOptions({
1919
orgSlug: organization.slug,
2020
releaseVersion: release,
2121
// Should be disabled if project is undefined

0 commit comments

Comments
 (0)