server/presenters/documentInsight.ts
Rama main · réplica de lectura del repositorio original.
import type { DocumentInsight } from "@server/models";
export default function presentDocumentInsight(insight: DocumentInsight) {
return {
date: insight.date,
period: insight.period,
viewCount: insight.viewCount,
viewerCount: insight.viewerCount,
commentCount: insight.commentCount,
reactionCount: insight.reactionCount,
revisionCount: insight.revisionCount,
editorCount: insight.editorCount,
};
}