allow hyphens in host name

This commit is contained in:
Maidul Islam
2025-05-19 17:42:42 -07:00
parent f97826ea82
commit 36c428f152

View File

@@ -776,12 +776,12 @@ export const projectServiceFactory = ({
});
}
// const plan = await licenseService.getPlan(project.orgId);
// if (!plan.auditLogs || auditLogsRetentionDays > plan.auditLogsRetentionDays) {
// throw new BadRequestError({
// message: "Failed to update audit logs retention due to plan limit reached. Upgrade plan to increase."
// });
// }
const plan = await licenseService.getPlan(project.orgId);
if (!plan.auditLogs || auditLogsRetentionDays > plan.auditLogsRetentionDays) {
throw new BadRequestError({
message: "Failed to update audit logs retention due to plan limit reached. Upgrade plan to increase."
});
}
return projectDAL.updateById(project.id, { auditLogsRetentionDays });
};