Remove max domains restriction on self-hosted

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

No files matched your search

+4
View File
@@ -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 },
});
+1 -1
View File
@@ -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,
};