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

Method listHubUsers

apps/memos-local-openclaw/src/storage/sqlite.ts:2315–2324  ·  view source on GitHub ↗
(status?: UserStatus)

Source from the content-addressed store, hash-verified

2313 }
2314
2315 listHubUsers(status?: UserStatus): HubUserRecord[] {
2316 const rows = status
2317 ? this.db.prepare('SELECT * FROM hub_users WHERE status = ? ORDER BY created_at').all(status) as HubUserRow[]
2318 : this.db.prepare('SELECT * FROM hub_users ORDER BY created_at').all() as HubUserRow[];
2319 return rows.map(r => {
2320 const user = rowToHubUser(r);
2321 user.groups = this.getGroupsForHubUser(r.id);
2322 return user;
2323 });
2324 }
2325
2326 deleteHubMemoriesByUser(userId: string): void {
2327 this.db.prepare('DELETE FROM hub_memories WHERE source_user_id = ?').run(userId);

Callers 12

listPendingUsersMethod · 0.45
ensureBootstrapAdminMethod · 0.45
isUsernameTakenMethod · 0.45
stopMethod · 0.45
handleMethod · 0.45
notifyAdminsMethod · 0.45
initOnlineTrackingMethod · 0.45
checkOfflineUsersMethod · 0.45
serveSharingStatusMethod · 0.45
notifyHubShutdownMethod · 0.45
storage.test.tsFile · 0.45

Calls 5

getGroupsForHubUserMethod · 0.95
allMethod · 0.80
prepareMethod · 0.80
mapMethod · 0.80
rowToHubUserFunction · 0.70

Tested by

no test coverage detected