Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codecombat/codecombat
/ getStatsForUser
Function
getStatsForUser
ozaria/site/api/user-stats.js:8–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
* @
return
{Promise<Object>} - User stats object
7
*/
8
export
const
getStatsForUser = userId => {
9
if
(!userId) {
10
throw
new
Error(
'No userId supplied'
)
11
}
12
return
fetchJson(`/db/user.stats/user/${userId}`)
13
}
Callers
1
userStats.js
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected