This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
2017-07-07 03:59:45 +00:00
|
|
|
// @flow
|
|
|
|
import { Team } from '../models';
|
|
|
|
|
|
|
|
function present(ctx: Object, team: Team) {
|
2017-06-26 00:21:33 +00:00
|
|
|
ctx.cache.set(team.id, team);
|
|
|
|
|
|
|
|
return {
|
|
|
|
id: team.id,
|
|
|
|
name: team.name,
|
2018-11-12 05:17:03 +00:00
|
|
|
avatarUrl: team.logoUrl,
|
2018-05-31 21:49:19 +00:00
|
|
|
slackConnected: !!team.slackId,
|
|
|
|
googleConnected: !!team.googleId,
|
2018-08-19 23:06:39 +00:00
|
|
|
sharing: team.sharing,
|
2018-12-15 22:06:29 +00:00
|
|
|
documentEmbeds: team.documentEmbeds,
|
2018-11-04 03:27:57 +00:00
|
|
|
subdomain: team.subdomain,
|
|
|
|
url: team.url,
|
2017-06-26 00:21:33 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export default present;
|