mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
bf45e97641
* Update types * fix circular dep * type imports * lint type imports and --fix
15 lines
375 B
TypeScript
15 lines
375 B
TypeScript
import type { 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,
|
|
};
|
|
}
|