1
0
Эх сурвалжийг харах

fix: upsert subdomain check to insert only

KernelDeimos 8 сар өмнө
parent
commit
dfb2523bd6

+ 3 - 1
src/backend/src/om/entitystorage/SubdomainES.js

@@ -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);
         },