refactor(admin): migrate invites + users to createApiClient (#465) #623

Merged
marcel merged 7 commits from feat/issue-465-event-fetch-refactor into main 2026-05-19 13:33:08 +02:00
Showing only changes of commit 741b2231f2 - Show all commits

View File

@@ -263,7 +263,7 @@ if (!result.response.ok) {
return { person: result.data! }; // non-null assertion is safe after the ok check
```
For multipart/form-data (file uploads): bypass the typed client and use raw `fetch` — the client cannot handle it.
For multipart/form-data (file uploads): bypass the typed client and use `event.fetch` directly — never global `fetch`. The typed client cannot handle multipart bodies, but `event.fetch` is still required so that `handleFetch` injects the session cookie.
### Date handling