6.14.1: Фикс nginx маршрута /priorities/confirm на проде
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 36s

This commit is contained in:
poignatov
2026-03-12 17:23:34 +03:00
parent 4971b2a305
commit c42cdfe35b
2 changed files with 3 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ server {
} }
# Proxy other API endpoints to backend # 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_pass http://localhost:8080;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;

View File

@@ -623,7 +623,8 @@ function ProjectPriorityManager({ allProjectsData, currentWeekData, shouldLoad,
body: JSON.stringify(changes), body: JSON.stringify(changes),
}) })
if (!response.ok) { if (!response.ok) {
throw new Error('Ошибка сохранения') const errText = await response.text().catch(() => '')
throw new Error(`Ошибка сохранения (${response.status})${errText ? ': ' + errText : ''}`)
} }
if (onConfirmed) onConfirmed() if (onConfirmed) onConfirmed()
} catch (e) { } catch (e) {