MCPcopy Create free account
hub / github.com/RealDevSquad/website-backend / formatTaskUpdateLogs

Function formatTaskUpdateLogs

utils/logs.js:91–99  ·  view source on GitHub ↗
(logsSnapshot, usersMap, tasksMap)

Source from the content-addressed store, hash-verified

89}
90
91function formatTaskUpdateLogs(logsSnapshot, usersMap, tasksMap) {
92 const { meta } = logsSnapshot;
93 return {
94 user: logsSnapshot.meta.username ?? usersMap[meta.userId]?.username,
95 taskId: meta.taskId,
96 taskTitle: tasksMap[meta.taskId]?.title,
97 ...flattenObject(logsSnapshot),
98 };
99}
100
101function formatProfileDiffLogs(logsSnapshot, usersMap, type) {
102 const { meta, body } = logsSnapshot;

Callers 1

formatLogsForFeedFunction · 0.85

Calls 1

flattenObjectFunction · 0.85

Tested by

no test coverage detected