diff --git a/backend/api/invoices.py b/backend/api/invoices.py index 12e6cbb..ac10d48 100644 --- a/backend/api/invoices.py +++ b/backend/api/invoices.py @@ -1237,7 +1237,6 @@ async def get_invoice_file( db: AsyncSession = Depends(get_db) ): """Get invoice file (image or PDF) with token in query param - works through proxies""" - from auth import get_current_user, require_cap_from_token from starlette.responses import Response from services.file_archival_service import FileArchivalService diff --git a/frontend/src/components/Review.tsx b/frontend/src/components/Review.tsx index 0b56ad6..577fe67 100644 --- a/frontend/src/components/Review.tsx +++ b/frontend/src/components/Review.tsx @@ -13,7 +13,7 @@ import IngredientModal from './IngredientModal' import { IngredientModalResult, LineItemResult } from '../utils/ingredientHelpers' // Use local worker file from public directory -pdfjsLib.GlobalWorkerOptions.workerSrc = '/pdf.worker.min.mjs' +pdfjsLib.GlobalWorkerOptions.workerSrc = '/kitchen/pdf.worker.min.mjs' // Simple Scale icon SVG component const ScaleIcon = ({ style }: { style?: React.CSSProperties }) => ( diff --git a/frontend/src/components/SearchDefinitions.tsx b/frontend/src/components/SearchDefinitions.tsx index fdea4e5..5fdbc80 100644 --- a/frontend/src/components/SearchDefinitions.tsx +++ b/frontend/src/components/SearchDefinitions.tsx @@ -15,7 +15,7 @@ import { import * as pdfjsLib from 'pdfjs-dist' // Configure PDF.js worker -pdfjsLib.GlobalWorkerOptions.workerSrc = '/pdf.worker.min.mjs' +pdfjsLib.GlobalWorkerOptions.workerSrc = '/kitchen/pdf.worker.min.mjs' interface ProductDefinition { id: number