Remove ununsed imports

This commit is contained in:
IshaVenikar 2025-01-31 18:08:27 +05:30
parent 22e814840e
commit df5062c75f
2 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ import {
ApplicationDeploymentRequest, ApplicationDeploymentRequest,
ApplicationDeploymentRemovalRequest ApplicationDeploymentRemovalRequest
} from './entity/Deployment'; } from './entity/Deployment';
import { AppDeploymentRecord, AppDeploymentRemovalRecord, AuctionParams, DeployerRecord, DNSRecord, DNSRecordAttributes } from './types'; import { AppDeploymentRecord, AppDeploymentRemovalRecord, AuctionParams, DeployerRecord, DNSRecord } from './types';
import { getConfig, getRepoDetails, registryTransactionWithRetry, sleep } from './utils'; import { getConfig, getRepoDetails, registryTransactionWithRetry, sleep } from './utils';
const log = debug('snowball:registry'); const log = debug('snowball:registry');
@ -442,9 +442,9 @@ export class Registry {
} }
/** /**
* Fetch deployment DNS record by Id * Fetch record by Id
*/ */
async getDNSRecordById(id: string): Promise<DNSRecord[]> { async getRecordById(id: string): Promise<DNSRecord[]> {
return this.registry.getRecordsByIds([id]); return this.registry.getRecordsByIds([id]);
} }

View File

@ -201,7 +201,7 @@ export class Service {
log(`Project ${deployment.projectId} not found`); log(`Project ${deployment.projectId} not found`);
return; return;
} else { } else {
const dnsRecords = await this.laconicRegistry.getDNSRecordById(record.attributes.dns); const dnsRecords = await this.laconicRegistry.getRecordById(record.attributes.dns);
const dnsRecordData: DNSRecordAttributes = { const dnsRecordData: DNSRecordAttributes = {
name: dnsRecords[0].attributes.name, name: dnsRecords[0].attributes.name,
@ -273,7 +273,7 @@ export class Service {
projectDeployment.deployer.deployerLrn === projectDeployment.deployer.deployerLrn ===
deployment.deployer.deployerLrn && deployment.deployer.deployerLrn &&
projectDeployment.id !== deployment.id && projectDeployment.id !== deployment.id &&
!deployment.isDNS, !projectDeployment.isDNS,
); );
for (const oldDeployment of oldDeployments) { for (const oldDeployment of oldDeployments) {
await this.db.updateDeployment( await this.db.updateDeployment(