(error: unknown)
| 17 | } |
| 18 | |
| 19 | function getPostgresErrorCode(error: unknown): string | undefined { |
| 20 | if (!error || typeof error !== 'object') return undefined |
| 21 | const err = error as { code?: string; cause?: { code?: string } } |
| 22 | return err.code || err.cause?.code |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Normalizes display names and ensures credential memberships for existing |
no outgoing calls
no test coverage detected