MCPcopy Create free account
hub / github.com/experdot/pointer / getCurrentAccount

Function getCurrentAccount

src/renderer/src/services/accountService.ts:118–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116
117// 获取当前账户
118export function getCurrentAccount(): Account | null {
119 const { account } = stores
120 if (!account.currentAccountId) return null
121 return account.getById(account.currentAccountId) || null
122}
123
124// 获取所有账户
125export function getAllAccounts(): Account[] {

Callers

nothing calls this directly

Calls 1

getByIdMethod · 0.65

Tested by

no test coverage detected