mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-01-07 09:35:04 +01:00
0e4a111f81
Resolve #7779
7 lines
275 B
TypeScript
7 lines
275 B
TypeScript
import { get } from '@/scripts/idb-proxy';
|
|
|
|
export async function getAccountFromId(id: string) {
|
|
const accounts = await get('accounts') as { token: string; id: string; }[];
|
|
if (!accounts) console.log('Accounts are not recorded');
|
|
return accounts.find(e => e.id === id);
|
|
}
|