From c42cdfe35baf86da81078a0f373fb86916cef48c Mon Sep 17 00:00:00 2001 From: poignatov Date: Thu, 12 Mar 2026 17:23:34 +0300 Subject: [PATCH] =?UTF-8?q?6.14.1:=20=D0=A4=D0=B8=D0=BA=D1=81=20nginx=20?= =?UTF-8?q?=D0=BC=D0=B0=D1=80=D1=88=D1=80=D1=83=D1=82=D0=B0=20/priorities/?= =?UTF-8?q?confirm=20=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B4=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx-unified.conf | 2 +- play-life-web/src/components/ProjectPriorityManager.jsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nginx-unified.conf b/nginx-unified.conf index 9af225d..55e3272 100644 --- a/nginx-unified.conf +++ b/nginx-unified.conf @@ -76,7 +76,7 @@ server { } # Proxy other API endpoints to backend - location ~ ^/(playlife-feed|d2dc349a-0d13-49b2-a8f0-1ab094bfba9b|projects|message/post|weekly_goals/setup|project_score_sample_mv/refresh)$ { + location ~ ^/(playlife-feed|d2dc349a-0d13-49b2-a8f0-1ab094bfba9b|projects|message/post|weekly_goals/setup|project_score_sample_mv/refresh|priorities/confirm)$ { proxy_pass http://localhost:8080; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; diff --git a/play-life-web/src/components/ProjectPriorityManager.jsx b/play-life-web/src/components/ProjectPriorityManager.jsx index 7d4afaa..3df690b 100644 --- a/play-life-web/src/components/ProjectPriorityManager.jsx +++ b/play-life-web/src/components/ProjectPriorityManager.jsx @@ -623,7 +623,8 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad, body: JSON.stringify(changes), }) if (!response.ok) { - throw new Error('Ошибка сохранения') + const errText = await response.text().catch(() => '') + throw new Error(`Ошибка сохранения (${response.status})${errText ? ': ' + errText : ''}`) } if (onConfirmed) onConfirmed() } catch (e) {