mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-16 15:07:36 -07:00
14148f6c4a
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);
|
|
}
|