💚
This commit is contained in:
@ -86,8 +86,9 @@ const uploadAvatar = async model => {
|
||||
};
|
||||
|
||||
Team.prototype.provisionSubdomain = async function(subdomain) {
|
||||
let append = 0;
|
||||
if (this.subdomain) return this.subdomain;
|
||||
|
||||
let append = 0;
|
||||
while (true) {
|
||||
try {
|
||||
await this.update({ subdomain });
|
||||
@ -97,6 +98,7 @@ Team.prototype.provisionSubdomain = async function(subdomain) {
|
||||
subdomain = `${subdomain}${++append}`;
|
||||
}
|
||||
}
|
||||
|
||||
return subdomain;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user