Restore default project to BWSamern-Ohne
Deploy Standortplaner / deploy (push) Failing after 7s Details

This commit is contained in:
Johannes Baumeister 2026-06-26 12:21:05 +02:00
parent 63ba610ca5
commit ba6ed0f058
2 changed files with 2 additions and 2 deletions

2
app.js
View File

@ -19,7 +19,7 @@ document.addEventListener('DOMContentLoaded', async () => {
const getProjektId = () => { const getProjektId = () => {
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);
return urlParams.get('project') || urlParams.get('projekt') || urlParams.get('projekt_id') || "test"; return urlParams.get('project') || urlParams.get('projekt') || urlParams.get('projekt_id') || "BWSamern-Ohne";
}; };
const STATUS_MAP = { const STATUS_MAP = {

View File

@ -57,7 +57,7 @@ app.get('/api/logs', (req, res) => {
// API to save turbines // API to save turbines
app.post('/api/wea', async (req, res) => { app.post('/api/wea', async (req, res) => {
const { projekt_id, turbines } = req.body; const { projekt_id, turbines } = req.body;
const targetProject = projekt_id || 'test'; const targetProject = projekt_id || 'BWSamern-Ohne';
const schema = process.env.DB_SCHEMA || 'geodaten'; const schema = process.env.DB_SCHEMA || 'geodaten';
log(`Empfange Save-Request für Projekt: ${targetProject} (${turbines?.length || 0} WEAs)`); log(`Empfange Save-Request für Projekt: ${targetProject} (${turbines?.length || 0} WEAs)`);