diff --git a/backend/src/services/app-connection/railway/railway-connection-public-client.ts b/backend/src/services/app-connection/railway/railway-connection-public-client.ts index 85cc309da..47eb3f396 100644 --- a/backend/src/services/app-connection/railway/railway-connection-public-client.ts +++ b/backend/src/services/app-connection/railway/railway-connection-public-client.ts @@ -117,8 +117,11 @@ class RailwayPublicClient { } } - async getDeployments(config: RailwaySendReqOptions, variables: { input: { serviceId: string; environmentId: string }, first?: number }) { - return await this.send>( + async getDeployments( + config: RailwaySendReqOptions, + variables: { input: { serviceId: string; environmentId: string }; first?: number } + ) { + return this.send>( `query deployments($input: DeploymentListInput!, $first: Int) { deployments(first: $first, input: $input) { edges { node { id } } } }`, config, variables @@ -126,7 +129,7 @@ class RailwayPublicClient { } async redeployDeployment(config: RailwaySendReqOptions, variables: { input: { deploymentId: string } }) { - return await this.send>( + return this.send>( `mutation deploymentRedeploy($deploymentId: String!) { deploymentRedeploy(id: $deploymentId) { id } }`, config, { deploymentId: variables.input.deploymentId } @@ -229,7 +232,9 @@ class RailwayPublicClient { async deleteVariable( config: RailwaySendReqOptions, - variables: { input: { projectId: string; environmentId: string; name: string; skipDeploys?: boolean; serviceId?: string } } + variables: { + input: { projectId: string; environmentId: string; name: string; skipDeploys?: boolean; serviceId?: string }; + } ) { await this.send }>>( `mutation variableDelete($input: VariableDeleteInput!) { variableDelete(input: $input) }`, @@ -240,12 +245,21 @@ class RailwayPublicClient { async upsertCollection( config: RailwaySendReqOptions, - variables: { input: { projectId: string; environmentId: string; variables: Record; skipDeploys?: boolean; serviceId?: string, replace?: boolean } } + variables: { + input: { + projectId: string; + environmentId: string; + variables: Record; + skipDeploys?: boolean; + serviceId?: string; + replace?: boolean; + }; + } ) { - return await this.send>( + return this.send>( `mutation variableCollectionUpsert($input: VariableCollectionUpsertInput!) { variableCollectionUpsert(input: $input) }`, config, - variables, + variables ); }