This commit is contained in:
2025-06-09 23:33:20 +02:00
parent 48cee6f849
commit 1054e2c839
5 changed files with 136 additions and 51 deletions

View File

@@ -59,6 +59,35 @@
- Client-side now detects 502 errors and clears invalid sessions
- No error toast shown - just resets to empty email state
### 9. All Interest and Berth APIs Authentication Fixed
- **Problem**: APIs were only accepting one auth header, causing failures for unauthenticated users
- **Solution**: Updated ALL APIs to accept both headers ("094ut234" and "pjnvü1230"):
- `create-interest.ts` - Create new interests
- `update-interest.ts` - Update existing interests
- `delete-interest.ts` - Delete interests
- `get-interests.ts` - List all interests
- `get-interest-by-id.ts` - Get single interest
- `get-berths.ts` - Get all berths
- `get-interest-berths.ts` - Get berths linked to interest
- `link-berths-to-interest.ts` - Link berths to interest
- `unlink-berths-from-interest.ts` - Unlink berths from interest
- `link-berth-recommendations-to-interest.ts` - Link berth recommendations
- `unlink-berth-recommendations-from-interest.ts` - Unlink berth recommendations
- Added comprehensive logging to all APIs for better debugging
### 10. EOI Status Dropdown Updated
- **Problem**: Missing "Waiting for Signatures" status option
- **Solution**:
- Added "Waiting for Signatures" as option 2 in EOI Status
- New order: "Awaiting Further Details" → "Waiting for Signatures" → "Signed"
### 11. 404 Errors for Newly Created Records
- **Problem**: Newly created records sometimes show 404 when immediately updating/linking
- **Solution**:
- Added better error logging to identify when this happens
- `get-interest-berths` returns empty list instead of throwing error for new records
- This appears to be a sync delay in NocoDB - record needs a moment to propagate
## Required Environment Variables
Make sure these are set in your `.env` file: