accessToken per subdomain

This commit is contained in:
Tom Moor
2018-11-09 23:40:33 -08:00
parent c323de4807
commit e24a187699
14 changed files with 201 additions and 332 deletions

View File

@@ -51,6 +51,11 @@ const Team = sequelize.define(
url.host = `${this.subdomain}.${url.host}`;
return url.href.replace(/\/$/, '');
},
logo() {
return (
this.avatarUrl || (this.slackData ? this.slackData.image_88 : null)
);
},
},
}
);