mirror of
https://github.com/outline/outline.git
synced 2025-12-21 10:39:41 -06:00
Remove max domains restriction on self-hosted
This commit is contained in:
@@ -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 },
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user