From 4611f0ab7aa216f6f7685891b81faac8d6151fb7 Mon Sep 17 00:00:00 2001 From: Maurice Date: Tue, 8 Sep 2026 22:45:00 +0200 Subject: [PATCH] test(files): give the e2e harness the column the receipt link adds listFiles projects linked_budget_item_ids now, so the harness table it selects from needs budget_item_id or every list call in that file answers 500. Same gap the collab harness had. --- server/tests/e2e/files.e2e.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/tests/e2e/files.e2e.test.ts b/server/tests/e2e/files.e2e.test.ts index 7b9353a03..10b9230e6 100644 --- a/server/tests/e2e/files.e2e.test.ts +++ b/server/tests/e2e/files.e2e.test.ts @@ -31,8 +31,9 @@ const { db } = vi.hoisted(() => { file_size INTEGER, mime_type TEXT, description TEXT, uploaded_by INTEGER, starred INTEGER DEFAULT 0, deleted_at DATETIME, created_at DATETIME DEFAULT CURRENT_TIMESTAMP);`); tmp.exec(`CREATE TABLE file_links (id INTEGER PRIMARY KEY AUTOINCREMENT, file_id INTEGER NOT NULL, - reservation_id INTEGER, assignment_id INTEGER, place_id INTEGER, + reservation_id INTEGER, assignment_id INTEGER, place_id INTEGER, budget_item_id INTEGER, created_at DATETIME DEFAULT CURRENT_TIMESTAMP);`); + tmp.exec('CREATE TABLE budget_items (id INTEGER PRIMARY KEY AUTOINCREMENT, trip_id INTEGER, name TEXT);'); tmp.exec('CREATE TABLE reservations (id INTEGER PRIMARY KEY AUTOINCREMENT, trip_id INTEGER, title TEXT);'); tmp.exec('CREATE TABLE places (id INTEGER PRIMARY KEY AUTOINCREMENT, trip_id INTEGER);'); tmp.exec('CREATE TABLE days (id INTEGER PRIMARY KEY AUTOINCREMENT, trip_id INTEGER);');