Remove max domains restriction on self-hosted

This commit is contained in:
Tom Moor
2024-02-21 18:09:40 -05:00
parent 72d9943807
commit 55fccc895d
2 changed files with 5 additions and 1 deletions

View File

@@ -61,6 +61,10 @@ class TeamDomain extends IdModel<
@BeforeCreate @BeforeCreate
static async checkLimit(model: TeamDomain) { static async checkLimit(model: TeamDomain) {
if (!env.isCloudHosted) {
return;
}
const count = await this.count({ const count = await this.count({
where: { teamId: model.teamId }, where: { teamId: model.teamId },
}); });

View File

@@ -49,7 +49,7 @@ export const PinValidation = {
}; };
export const TeamValidation = { export const TeamValidation = {
/** The maximum number of domains per team */ /** The maximum number of domains per team on cloud hosted */
maxDomains: 10, maxDomains: 10,
}; };