Add validation for cname in StatusPageDomainService.ts

This commit is contained in:
Simon Larsen 2024-04-30 15:02:54 +01:00
parent 78b7252743
commit 0714161460
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
2 changed files with 4 additions and 2 deletions

View File

@ -300,6 +300,10 @@ export class Service extends DatabaseService<StatusPageDomain> {
);
if (!isValid) {
// check if cname is valid.
await this.isCnameValid(statusPageDomain.fullDomain!);
await this.updateOneById({
id: statusPageDomain.id!,
data: {

View File

@ -78,7 +78,6 @@ export default class AcmeCertificate extends BaseModel {
@Column({
type: ColumnType.Date,
nullable: false,
default: false,
unique: false,
})
public issuedAt?: Date = undefined;
@ -92,7 +91,6 @@ export default class AcmeCertificate extends BaseModel {
@Column({
type: ColumnType.Date,
nullable: false,
default: false,
unique: false,
})
public expiresAt?: Date = undefined;