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

Function initializeUser

models/users.js:464–472  ·  view source on GitHub ↗
(userId)

Source from the content-addressed store, hash-verified

462 if (userData.email) aliasKeys.push(`user:email:${userData.email}`);
463 userCache.set(aliasKeys, { ...userData, id }, id);
464 }
465
466 return {
467 userExists: !!userData,
468 user: {
469 ...userData,
470 id,
471 },
472 };
473 } catch (err) {
474 logger.error("Error retrieving user data", err);
475 throw err;

Callers

nothing calls this directly

Calls 3

fetchWalletFunction · 0.85
createWalletFunction · 0.85
updateUserStatusFunction · 0.70

Tested by

no test coverage detected