This commit is contained in:
root 2025-06-19 14:05:04 +01:00
commit 854e8d3e2e

View File

@ -19,7 +19,7 @@ function handleTriggerExecutionResult($result, $stdout, $stderr, $originalRow, $
$newRowValue = json_decode($stdout, true);
// Ignore the hydrate columns
$newRowValue = array_filter($newRowValue, fn($k) => !str_ends_with($k, '_ref'), ARRAY_FILTER_USE_KEY);
$newRowValue = array_filter($newRowValue ?? [], fn($k) => !str_ends_with($k, '_ref'), ARRAY_FILTER_USE_KEY);
if ($newRowValue === null) {
updateTriggerError($tableName, 'Invalid JSON output from sandboxed execution.');