Fix financial export array binding and add SVG favicon
Validate / validate (push) Successful in 25s

- 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) <noreply@anthropic.com>
This commit is contained in:
2026-04-15 09:50:14 +07:00
parent 39ac9d3928
commit 1754b99909
5 changed files with 14 additions and 7 deletions
+6 -1
View File
@@ -1,7 +1,12 @@
import type { Handle } from '@sveltejs/kit';
import { redirect, type Handle } from '@sveltejs/kit';
import { validateSession, setSessionCookie } from '$lib/server/auth/index.js';
export const handle: Handle = async ({ event, resolve }) => {
// Redirect implicit /favicon.ico requests to our SVG to avoid 404 noise
if (event.url.pathname === '/favicon.ico') {
redirect(302, '/favicon.svg');
}
const token = event.cookies.get('session');
if (token) {