Add script for publishing ApplicationDeploymentRemovalRecord record

This commit is contained in:
2024-04-25 16:59:02 +05:30
parent f290b5c0b5
commit b53e12b94b
5 changed files with 76 additions and 1 deletions
+5 -1
View File
@@ -6,7 +6,8 @@ import {
UpdateDateColumn,
ManyToOne,
OneToOne,
JoinColumn
JoinColumn,
DeleteDateColumn
} from 'typeorm';
import { Project } from './Project';
@@ -146,4 +147,7 @@ export class Deployment {
@UpdateDateColumn()
updatedAt!: Date;
@DeleteDateColumn()
deletedAt!: Date | null;
}
+1
View File
@@ -19,6 +19,7 @@ enum DeploymentStatus {
Building
Ready
Error
Deleting
}
enum DomainStatus {
+2
View File
@@ -52,6 +52,8 @@ export class Service {
init (): void {
// Start check for ApplicationDeploymentRecords asynchronously
this.checkDeployRecordsAndUpdate();
// Start check for ApplicationDeploymentRemovalRecords asynchronously
this.checkDeploymentRemovalRecordsAndUpdate();
}
/**