mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 02:40:39 +09:00
The plugin static asset route tries to look up a plugin by UUID first, catching Postgres error 22P02 (invalid_text_representation) to fall back to a key-based lookup. However, drizzle-orm wraps all query errors in a DrizzleQueryError that stores the original error in `.cause` — so `error.code` is always undefined and the fallback to `getByKey()` never fires. Fix by walking the error chain (top-level `code`, then `cause.code`, recursively) so plugins that embed their key (e.g. `agent-pixels.camera`) in `/_plugins/:pluginId/` asset URLs are resolved correctly and no longer return 500. |
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| CHANGELOG.md | ||
| package.json | ||
| tsconfig.json | ||
| vitest.config.ts | ||