mirror of
https://github.com/outline/outline.git
synced 2026-05-24 12:49:24 -05:00
14 lines
202 B
JavaScript
14 lines
202 B
JavaScript
// @flow
|
|
import { Team } from '../models';
|
|
|
|
function present(ctx: Object, team: Team) {
|
|
ctx.cache.set(team.id, team);
|
|
|
|
return {
|
|
id: team.id,
|
|
name: team.name,
|
|
};
|
|
}
|
|
|
|
export default present;
|