CognxSafeTrack commited on
Commit ·
06cb7f3
1
Parent(s): 5220c27
fix: explicit type casting for simulation response
Browse files
apps/api/src/scripts/simulate-webhook.ts
CHANGED
|
@@ -59,7 +59,7 @@ async function runSimulation() {
|
|
| 59 |
body: JSON.stringify(payload)
|
| 60 |
});
|
| 61 |
|
| 62 |
-
const data = await response.json();
|
| 63 |
console.log(`\n✅ Response (${response.status}):`, JSON.stringify(data, null, 2));
|
| 64 |
|
| 65 |
if (data.status === 'forwarded') {
|
|
|
|
| 59 |
body: JSON.stringify(payload)
|
| 60 |
});
|
| 61 |
|
| 62 |
+
const data = await response.json() as any;
|
| 63 |
console.log(`\n✅ Response (${response.status}):`, JSON.stringify(data, null, 2));
|
| 64 |
|
| 65 |
if (data.status === 'forwarded') {
|