Skip to content

Commit

Permalink
chore: fix lint error in deployment connect
Browse files Browse the repository at this point in the history
  • Loading branch information
m8vago committed Oct 13, 2022
1 parent 9cf42c7 commit 4902ac0
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@ import {
WS_TYPE_EDITOR_IDENTITY,
WS_TYPE_EDITOR_JOINED,
WS_TYPE_EDITOR_LEFT,
WS_TYPE_FETCH_DEPLOYMENT_EVENTS, WS_TYPE_FOCUS_INPUT, WS_TYPE_GET_DEPLOYMENT_SECRETS, WS_TYPE_GET_INSTANCE,
WS_TYPE_FETCH_DEPLOYMENT_EVENTS,
WS_TYPE_FOCUS_INPUT,
WS_TYPE_GET_DEPLOYMENT_SECRETS,
WS_TYPE_GET_INSTANCE,
WS_TYPE_INPUT_BLURED,
WS_TYPE_INPUT_FOCUSED,
WS_TYPE_INSTANCE,
WS_TYPE_INSTANCE_UPDATED,
WS_TYPE_PATCH_DEPLOYMENT_ENV,
WS_TYPE_PATCH_INSTANCE,
WS_TYPE_START_DEPLOYMENT
WS_TYPE_START_DEPLOYMENT,
} from '@app/models'
import { WsMessage } from '@app/websockets/common'
import WsConnection from '@app/websockets/connection'
Expand Down Expand Up @@ -183,10 +186,7 @@ const onGetSecrets = async (

const req = message.payload

const res = await cruxFromConnection(connection).deployments.getSecretsList(
deploymentId,
req.instanceId,
)
const res = await cruxFromConnection(connection).deployments.getSecretsList(deploymentId, req.instanceId)

if (!res.hasKeys) {
return
Expand All @@ -196,6 +196,8 @@ const onGetSecrets = async (
instanceId: message.payload.instanceId,
keys: res.keys,
} as DeploymentSecretListMessage)
}

const onFocusInput = async (endpoint: WsEndpoint, connection: WsConnection, message: WsMessage<InputFocusMessage>) => {
const { token } = connection
const editors = endpoint.services.get(EditorService)
Expand Down

0 comments on commit 4902ac0

Please sign in to comment.