Skip to content

Commit

Permalink
fix(environment-deployment-status): remove rest call cause glitch wit…
Browse files Browse the repository at this point in the history
…h ws (#1743)

fix(environment-deployment-status): remove rest call provides glitch with ws
  • Loading branch information
RemiBonnet authored Oct 30, 2024
1 parent 6a95279 commit 74f603b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
type EnvironmentEditRequest,
EnvironmentExportApi,
EnvironmentMainCallsApi,
type EnvironmentStatus,
EnvironmentsApi,
LifecycleTemplateMainCallsApi,
} from 'qovery-typescript-axios'
Expand All @@ -36,8 +37,8 @@ export const environments = createQueryKeys('environments', {
deploymentStatus: (environmentId: string) => ({
queryKey: [environmentId],
async queryFn() {
const result = await environmentMainCallsApi.getEnvironmentStatus(environmentId)
return result.data
// eslint-disable-next-line @typescript-eslint/no-empty-function
return new Promise<EnvironmentStatus | null>(() => {})
},
}),
// NOTE: Value is set by WebSocket
Expand Down

0 comments on commit 74f603b

Please sign in to comment.