feat: Implement file upload and management features in ProjectViewPage

This commit is contained in:
2025-09-24 21:55:44 +02:00
parent 0f451555d3
commit 96333ecced
7 changed files with 490 additions and 15 deletions

View File

@@ -110,7 +110,7 @@ async function createNoteHandler(req) {
}
async function deleteNoteHandler(req, { params }) {
const { id } = params;
const { id } = await params;
// Get note data before deletion for audit log
const note = db.prepare("SELECT * FROM notes WHERE note_id = ?").get(id);
@@ -137,7 +137,8 @@ async function deleteNoteHandler(req, { params }) {
}
async function updateNoteHandler(req, { params }) {
const noteId = params.id;
const { id } = await params;
const noteId = id;
const { note } = await req.json();
if (!note || !noteId) {