Commit 1846a37
fix(LLMO-4070): guard against null configuration in patchAuditForSite
Configuration.findLatest() returns null when no config exists in S3
(NoSuchKey case). Calling .getHandlers() on null threw a TypeError,
surfacing as a 500 in environments where the config bucket exists but
has no object (IT test VPC environment). Skip the audit-type validation
when no configuration is available — in production the config is always
present.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c0d92c3 commit 1846a37
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
| |||
0 commit comments