Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

run lint

Thalles Passosddffa3dc8f09
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 85cc309da9..47eb3f3967 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<TRailwayResponse<{ deployments: { edges: { node: { id: string } }[] } }>>(
+ async getDeployments(
+ config: RailwaySendReqOptions,
+ variables: { input: { serviceId: string; environmentId: string }; first?: number }
+ ) {
+ return this.send<TRailwayResponse<{ deployments: { edges: { node: { id: string } }[] } }>>(
`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<TRailwayResponse<{ deploymentRedeploy: { id: string } }>>(
+ return this.send<TRailwayResponse<{ deploymentRedeploy: { id: string } }>>(
`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<TRailwayResponse<{ variables: Record<string, string> }>>(
`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<string, string>; skipDeploys?: boolean; serviceId?: string, replace?: boolean } }
+ variables: {
+ input: {
+ projectId: string;
+ environmentId: string;
+ variables: Record<string, string>;
+ skipDeploys?: boolean;
+ serviceId?: string;
+ replace?: boolean;
+ };
+ }
) {
- return await this.send<TRailwayResponse<boolean>>(
+ return this.send<TRailwayResponse<boolean>>(
`mutation variableCollectionUpsert($input: VariableCollectionUpsertInput!) { variableCollectionUpsert(input: $input) }`,
config,
- variables,
+ variables
);
}