Прокрутка дерганая
This commit is contained in:
@@ -12,7 +12,7 @@ export class UserApi {
|
||||
return httpClient.request<User>(`/profiles/${id}`);
|
||||
}
|
||||
|
||||
static async updateProfile(data: { displayName?: string; bio?: string; birthday?: string }) {
|
||||
static async updateProfile(data: { displayName?: string; bio?: string; birthday?: string | null }) {
|
||||
// Конечная точка в новом бэкенде: PUT /api/profiles/profile
|
||||
return httpClient.request<User>('/profiles/profile', {
|
||||
method: 'PUT',
|
||||
|
||||
Reference in New Issue
Block a user