Commit 56e9e91
committed
Validate integration type before DEEPNOTE_TO_INTEGRATION_TYPE lookup
Add validation in IntegrationManager to check that projectIntegration.type
exists as a key in DEEPNOTE_TO_INTEGRATION_TYPE before performing the lookup.
If the type is unknown, log a warning with context (integration ID, project ID,
and the unexpected type value) and leave integrationType undefined so callers
can handle missing mappings explicitly.1 parent 8e78c67 commit 56e9e91
1 file changed
+10
-2
lines changedLines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
173 | 181 | | |
174 | 182 | | |
175 | 183 | | |
| |||
0 commit comments