mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
fix: upsert subdomain check to insert only
This commit is contained in:
parent
9816411451
commit
dfb2523bd6
@ -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);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user