mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Add validation for cname in StatusPageDomainService.ts
This commit is contained in:
parent
78b7252743
commit
0714161460
@ -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: {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user