From c4ca9517c088ec365b40e2b818978ef272a160ff Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Tue, 29 Oct 2024 12:24:29 +0530 Subject: [PATCH] Change field name in deployer entity --- packages/backend/src/entity/Deployer.ts | 2 +- packages/backend/src/service.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/entity/Deployer.ts b/packages/backend/src/entity/Deployer.ts index b894d98f..b2612c54 100644 --- a/packages/backend/src/entity/Deployer.ts +++ b/packages/backend/src/entity/Deployer.ts @@ -19,7 +19,7 @@ export class Deployer { minimumPayment!: string | null; @Column('varchar', { nullable: true }) - deployerAddress!: string | null; + paymentAddress!: string | null; @ManyToMany(() => Project, (project) => project.deployers) projects!: Project[]; diff --git a/packages/backend/src/service.ts b/packages/backend/src/service.ts index 1e9ec653..c831442e 100644 --- a/packages/backend/src/service.ts +++ b/packages/backend/src/service.ts @@ -912,7 +912,7 @@ export class Service { if (deployer.minimumPayment && project.txHash) { const txResponse = await this.laconicRegistry.sendTokensToAccount( - deployer?.deployerAddress!, + deployer?.paymentAddress!, deployer?.minimumPayment ); @@ -1423,7 +1423,7 @@ export class Service { const deployerLrn = record.names[0]; const deployerApiUrl = record.attributes.apiUrl; const minimumPayment = record.attributes.minimumPayment; - const deployerAddress = record.attributes.paymentAddress; + const paymentAddress = record.attributes.paymentAddress; const baseDomain = deployerApiUrl.substring(deployerApiUrl.indexOf('.') + 1); const deployerData = { @@ -1432,7 +1432,7 @@ export class Service { deployerApiUrl, baseDomain, minimumPayment, - deployerAddress + paymentAddress }; // TODO: Update deployers table in a separate job