ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: профиль, редиректы и визуальные статусы задач

This commit is contained in:
DCCONSTRUCTIONS
2026-04-25 14:41:31 +03:00
parent c4032e3040
commit 4ed63cac4e
16 changed files with 271 additions and 21 deletions
@@ -297,6 +297,14 @@ export class UserService extends APIService {
throw error?.response?.data;
});
}
async updateEmailDirect(data: { email: string }): Promise<IUser> {
return this.patch("/api/users/me/email/direct/", data)
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data;
});
}
}
const userService = new UserService();