mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-30 22:02:03 -08:00
chore(core): Report to Sentry successful execution with empty data (#12669)
This commit is contained in:
parent
1eeb788d32
commit
174cd44815
|
@ -287,6 +287,15 @@ export class ExecutionRepository extends Repository<ExecutionEntity> {
|
|||
const { executionData, metadata, annotation, ...rest } = execution;
|
||||
const serializedAnnotation = this.serializeAnnotation(annotation);
|
||||
|
||||
if (execution.status === 'success' && executionData?.data === '[]') {
|
||||
this.errorReporter.error('Found successful execution where data is empty stringified array', {
|
||||
extra: {
|
||||
executionId: execution.id,
|
||||
workflowId: executionData?.workflowData.id,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
...rest,
|
||||
...(options?.includeData && {
|
||||
|
|
Loading…
Reference in a new issue