mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 00:20:45 +00:00
fix: upsert subdomain check to insert only
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user