From 36c350437bc2add17072cacfdfc2d8365968e51a Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 2 Aug 2025 09:47:16 -0400 Subject: [PATCH] new fix for note js --- public/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 01939df..032d926 100644 --- a/public/index.html +++ b/public/index.html @@ -362,7 +362,10 @@ async function handleAddNote(e) { return showMessage('Please select an employee.', 'error'); } - const res = await apiCall('/api/admin/notes', 'POST', { userId, noteText }); + // BEFORE: const res = await apiCall('/api/admin/notes', 'POST', { userId, noteText }); + // AFTER (Corrected): + const res = await apiCall('/admin/notes', 'POST', { userId, noteText }); + if (res.success) { showMessage(res.data.message, 'success'); e.target.reset();