diff --git a/server/models/TeamDomain.ts b/server/models/TeamDomain.ts index 1447d26f7..857d2c433 100644 --- a/server/models/TeamDomain.ts +++ b/server/models/TeamDomain.ts @@ -61,6 +61,10 @@ class TeamDomain extends IdModel< @BeforeCreate static async checkLimit(model: TeamDomain) { + if (!env.isCloudHosted) { + return; + } + const count = await this.count({ where: { teamId: model.teamId }, }); diff --git a/shared/validations.ts b/shared/validations.ts index fefe84704..c6a7a7056 100644 --- a/shared/validations.ts +++ b/shared/validations.ts @@ -49,7 +49,7 @@ export const PinValidation = { }; export const TeamValidation = { - /** The maximum number of domains per team */ + /** The maximum number of domains per team on cloud hosted */ maxDomains: 10, };