mirror of
https://github.com/outline/outline.git
synced 2026-11-23 06:11:04 +03:00
12 lines
260 B
TypeScript
12 lines
260 B
TypeScript
import Group from "@server/models/Group";
|
|
|
|
export default function presentGroup(group: Group) {
|
|
return {
|
|
id: group.id,
|
|
name: group.name,
|
|
memberCount: group.groupUsers.length,
|
|
createdAt: group.createdAt,
|
|
updatedAt: group.updatedAt,
|
|
};
|
|
}
|