mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-09-23 02:20:44 +02:00
chore(core): Report to Sentry successful execution with empty data (#12669)
This commit is contained in:
@@ -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 && {
|
||||
|
||||
Reference in New Issue
Block a user