mirror of
https://github.com/outline/outline.git
synced 2026-11-21 13:34:02 +03:00
12 lines
266 B
TypeScript
12 lines
266 B
TypeScript
import Group from "@server/models/Group";
|
|
|
|
export default async function presentGroup(group: Group) {
|
|
return {
|
|
id: group.id,
|
|
name: group.name,
|
|
memberCount: await group.memberCount,
|
|
createdAt: group.createdAt,
|
|
updatedAt: group.updatedAt,
|
|
};
|
|
}
|