mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
atleast
This commit is contained in:
@@ -246,7 +246,7 @@ export class Service extends DatabaseService<IncidentStateTimeline> {
|
|||||||
|
|
||||||
if (incidentStateTimeline.isOne()) {
|
if (incidentStateTimeline.isOne()) {
|
||||||
throw new BadDataException(
|
throw new BadDataException(
|
||||||
'Cannot delete the only state timeline. Incident should have atleast one state in its timeline.'
|
'Cannot delete the only state timeline. Incident should have at least one state in its timeline.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ export class Service extends DatabaseService<MonitorStatusTimeline> {
|
|||||||
|
|
||||||
if (monitorStatusTimeline.isOne()) {
|
if (monitorStatusTimeline.isOne()) {
|
||||||
throw new BadDataException(
|
throw new BadDataException(
|
||||||
'Cannot delete the only status timeline. Monitor should have atleast one status timeline.'
|
'Cannot delete the only status timeline. Monitor should have at least one status timeline.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ export class Service extends DatabaseService<ScheduledMaintenanceStateTimeline>
|
|||||||
|
|
||||||
if (scheduledMaintenanceStateTimeline.isOne()) {
|
if (scheduledMaintenanceStateTimeline.isOne()) {
|
||||||
throw new BadDataException(
|
throw new BadDataException(
|
||||||
'Cannot delete the only state timeline. Scheduled Maintenance should have atleast one state in its timeline.'
|
'Cannot delete the only state timeline. Scheduled Maintenance should have at least one state in its timeline.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -407,7 +407,7 @@ export default class Team extends BaseModel {
|
|||||||
type: TableColumnType.Boolean,
|
type: TableColumnType.Boolean,
|
||||||
title: 'Should have one member?',
|
title: 'Should have one member?',
|
||||||
description:
|
description:
|
||||||
'Can this team have no members? Owner team should have atleast 1 member, other teams can have no members',
|
'Can this team have no members? Owner team should have at least 1 member, other teams can have no members',
|
||||||
})
|
})
|
||||||
@Column({
|
@Column({
|
||||||
type: ColumnType.Boolean,
|
type: ColumnType.Boolean,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# This file takes last 30 days backup. Make sure you run this file atleast once/day.
|
# This file takes last 30 days backup. Make sure you run this file at least once/day.
|
||||||
# The backup will be in the format of db-(date of the month).backup
|
# The backup will be in the format of db-(date of the month).backup
|
||||||
# Before the backup, please make sure DATABASE_BACKUP_* ENV vars in config.env is set properly.
|
# Before the backup, please make sure DATABASE_BACKUP_* ENV vars in config.env is set properly.
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# This file takes last 30 days backup. Make sure you run this file atleast once/day.
|
# This file takes last 30 days backup. Make sure you run this file at least once/day.
|
||||||
# The backup will be in the format of db-(date of the month).backup
|
# The backup will be in the format of db-(date of the month).backup
|
||||||
# Before the backup, please make sure DATABASE_RESTORE_* ENV vars in config.env is set properly.
|
# Before the backup, please make sure DATABASE_RESTORE_* ENV vars in config.env is set properly.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user