6.14.1: Фикс nginx маршрута /priorities/confirm на проде
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 36s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 36s
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user