mirror of
https://github.com/outline/outline.git
synced 2026-11-21 13:34:02 +03:00
15 lines
370 B
TypeScript
15 lines
370 B
TypeScript
import { Reaction } from "@server/models";
|
|
import presentUser from "./user";
|
|
|
|
export default function present(reaction: Reaction) {
|
|
return {
|
|
id: reaction.id,
|
|
emoji: reaction.emoji,
|
|
commentId: reaction.commentId,
|
|
user: presentUser(reaction.user),
|
|
userId: reaction.userId,
|
|
createdAt: reaction.createdAt,
|
|
updatedAt: reaction.updatedAt,
|
|
};
|
|
}
|