MCPcopy Create free account
hub / github.com/codecombat/codecombat / activityFromRemote

Function activityFromRemote

app/lib/user-utils.js:98–105  ·  view source on GitHub ↗
(remoteActivity)

Source from the content-addressed store, hash-verified

96}
97
98function activityFromRemote (remoteActivity) {
99 if (!remoteActivity?.first) { return null }
100 return {
101 first: new Date(remoteActivity.first).getTime(),
102 last: remoteActivity.last ? new Date(remoteActivity.last).getTime() : undefined,
103 count: remoteActivity.count,
104 }
105}
106
107function normalizeCacheEntry (value) {
108 if (value == null) { return null }

Callers 1

reconcileActivityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected