mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 08:15:12 +00:00
refactor
This commit is contained in:
parent
fd4ec81bcb
commit
a7015e6f09
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ export async function addAccount(id: Account['id'], token: Account['token']) {
|
|||
}
|
||||
}
|
||||
|
||||
function fetchAccount(token): Promise<Account> {
|
||||
function fetchAccount(token: string): Promise<Account> {
|
||||
return new Promise((done, fail) => {
|
||||
// Fetch user
|
||||
fetch(`${apiUrl}/i`, {
|
||||
|
|
Loading…
Reference in a new issue