mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-08 01:00:16 +00:00
fix: any
This commit is contained in:
parent
cae9e387b9
commit
919b44fd2a
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ export async function apiWhoami(): Promise<string> {
|
||||||
try {
|
try {
|
||||||
const res = await axios.get(`${API_URL}/whoami`);
|
const res = await axios.get(`${API_URL}/whoami`);
|
||||||
return res.data;
|
return res.data;
|
||||||
} catch (e) {
|
} catch (e: any) {
|
||||||
throw errorHandler(e, 'Whoami failed');
|
throw errorHandler(e, 'Whoami failed');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue