fix: upsert subdomain check to insert only

This commit is contained in:
KernelDeimos 2024-09-18 16:19:48 -04:00
parent 9816411451
commit dfb2523bd6

View File

@ -39,7 +39,9 @@ class SubdomainES extends BaseES {
} }
}, },
async upsert (entity, extra) { 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); return await this.upstream.upsert(entity, extra);
}, },