MCPcopy Create free account
hub / github.com/MemTensor/MemOS / getHubUser

Method getHubUser

apps/memos-local-openclaw/src/storage/sqlite.ts:2307–2313  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

2305 }
2306
2307 getHubUser(userId: string): HubUserRecord | null {
2308 const row = this.db.prepare('SELECT * FROM hub_users WHERE id = ?').get(userId) as HubUserRow | undefined;
2309 if (!row) return null;
2310 const user = rowToHubUser(row);
2311 user.groups = this.getGroupsForHubUser(userId);
2312 return user;
2313 }
2314
2315 listHubUsers(status?: UserStatus): HubUserRecord[] {
2316 const rows = status

Callers 9

rejoinUserMethod · 0.45
approveUserMethod · 0.45
ensureBootstrapAdminMethod · 0.45
updateUsernameMethod · 0.45
rejectUserMethod · 0.45
resetToPendingMethod · 0.45
handleMethod · 0.45
authenticateMethod · 0.45
storage.test.tsFile · 0.45

Calls 4

getGroupsForHubUserMethod · 0.95
prepareMethod · 0.80
rowToHubUserFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected