fix: upsert subdomain check to insert only

This commit is contained in:
KernelDeimos
2024-09-18 16:19:48 -04:00
parent e3431cd7f5
commit f2acd83b72
@@ -39,7 +39,9 @@ class SubdomainES extends BaseES {
}
},
async upsert (entity, extra) {
await this._check_max_subdomains();
if ( ! extra.old_entity ) {
await this._check_max_subdomains();
}
return await this.upstream.upsert(entity, extra);
},