Remove max domains restriction on self-hosted
This commit is contained in:
@@ -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 },
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user