From 5d7fe68351fddc91fa335da9675fc518e00f07ec Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Tue, 29 Oct 2024 12:21:35 +0530 Subject: [PATCH] Don't pass payment in deployment requests with auction flow --- packages/backend/src/registry.ts | 2 +- packages/backend/src/service.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/backend/src/registry.ts b/packages/backend/src/registry.ts index d19d83f4..d0a03e41 100644 --- a/packages/backend/src/registry.ts +++ b/packages/backend/src/registry.ts @@ -244,7 +244,7 @@ export class Registry { deployment: Deployment, appName: string, repository: string, - auctionId?: string, + auctionId?: string | null, lrn: string, environmentVariables: { [key: string]: string }, dns: string, diff --git a/packages/backend/src/service.ts b/packages/backend/src/service.ts index f2c3afb3..1e9ec653 100644 --- a/packages/backend/src/service.ts +++ b/packages/backend/src/service.ts @@ -649,7 +649,8 @@ export class Service { environmentVariables: environmentVariablesObj, dns: `${newDeployment.project.name}`, lrn: deployer!.deployerLrn!, - payment: data.project.txHash + payment: data.project.txHash, + auctionId: data.project.auctionId }); } @@ -661,7 +662,8 @@ export class Service { lrn: deployer!.deployerLrn!, environmentVariables: environmentVariablesObj, dns: `${newDeployment.project.name}-${newDeployment.id}`, - payment: data.project.txHash + payment: data.project.txHash, + auctionId: data.project.auctionId }); await this.db.updateDeploymentById(newDeployment.id, { @@ -727,7 +729,6 @@ export class Service { dns: `${newDeployment.project.name}`, auctionId: project.auctionId!, lrn: deployerLrn, - payment: project.txHash }); } @@ -741,7 +742,6 @@ export class Service { lrn: deployerLrn, environmentVariables: environmentVariablesObj, dns: `${newDeployment.project.name}-${newDeployment.id}`, - payment: project.txHash }); await this.db.updateDeploymentById(newDeployment.id, {