MCPcopy 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 */
8export 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.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected