From 1754b99909ca61debf59263038e191ffad33f0d5 Mon Sep 17 00:00:00 2001 From: grabowski Date: Wed, 15 Apr 2026 09:50:14 +0700 Subject: [PATCH] Fix financial export array binding and add SVG favicon - Replace raw `ANY(${array})` SQL with drizzle's inArray() in src/lib/server/export/financial.ts; the raw form sent UUID arrays in a malformed Postgres array literal causing 500 on download - Add static/favicon.svg (Thai baht symbol on blue square) and point app.html at it; remove the empty favicon.png - Redirect /favicon.ico to /favicon.svg in hooks.server.ts so browsers' implicit fallback request stops 404'ing Co-Authored-By: Claude Opus 4.6 (1M context) --- src/app.html | 2 +- src/hooks.server.ts | 7 ++++++- src/lib/server/export/financial.ts | 8 +++----- static/favicon.png | 0 static/favicon.svg | 4 ++++ 5 files changed, 14 insertions(+), 7 deletions(-) delete mode 100644 static/favicon.png create mode 100644 static/favicon.svg diff --git a/src/app.html b/src/app.html index dd432c4..26d9179 100644 --- a/src/app.html +++ b/src/app.html @@ -2,7 +2,7 @@ - +