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

Method getHubUser

packages/memos-core/src/storage/sqlite.ts:2171–2177  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

2169 }
2170
2171 getHubUser(userId: string): HubUserRecord | null {
2172 const row = this.db.prepare('SELECT * FROM hub_users WHERE id = ?').get(userId) as HubUserRow | undefined;
2173 if (!row) return null;
2174 const user = rowToHubUser(row);
2175 user.groups = this.getGroupsForHubUser(userId);
2176 return user;
2177 }
2178
2179 listHubUsers(status?: UserStatus): HubUserRecord[] {
2180 const rows = status

Callers 8

rejoinUserMethod · 0.45
approveUserMethod · 0.45
ensureBootstrapAdminMethod · 0.45
updateUsernameMethod · 0.45
rejectUserMethod · 0.45
resetToPendingMethod · 0.45
handleMethod · 0.45
authenticateMethod · 0.45

Calls 4

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

Tested by

no test coverage detected