mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 23:49:38 +00:00
Refac APIClient to return data, error and status as object
This commit is contained in:
@@ -10,8 +10,8 @@ export type UserAccountType = {
|
||||
last_login: string;
|
||||
};
|
||||
|
||||
const loadUserAccount = async (): Promise<UserAccountType> => {
|
||||
return APIClient('/api/user/account/');
|
||||
const loadUserAccount = async () => {
|
||||
return APIClient<UserAccountType>('/api/user/account/');
|
||||
};
|
||||
|
||||
export default loadUserAccount;
|
||||
|
||||
Reference in New Issue
Block a user