mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
🐛 Remove circular references from error objects (#1802)
* ⚡ Add circular references removal * 🔥 Remove unused flag from affected node * 🔥 Remove unused exports * 🔨 refactor removing circular references * ⚡ Replace IRawErrorObject with JsonObject * ⚡ Make error detection depth-first (#1800) * 👕 fix type * 🔨 improve readability * 📝 improve placeholder for circular reference * ⚡ Turn marker into object to keep description Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com>
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
INodeExecutionData,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
JsonObject,
|
||||
NodeApiError,
|
||||
NodeOperationError,
|
||||
} from 'n8n-workflow';
|
||||
@@ -331,7 +332,7 @@ export class RabbitMQ implements INodeType {
|
||||
// @ts-ignore
|
||||
const promisesResponses = await Promise.allSettled(queuePromises);
|
||||
|
||||
promisesResponses.forEach((response: IDataObject) => {
|
||||
promisesResponses.forEach((response: JsonObject) => {
|
||||
if (response!.status !== 'fulfilled') {
|
||||
|
||||
if (this.continueOnFail() !== true) {
|
||||
@@ -396,7 +397,7 @@ export class RabbitMQ implements INodeType {
|
||||
// @ts-ignore
|
||||
const promisesResponses = await Promise.allSettled(exchangePromises);
|
||||
|
||||
promisesResponses.forEach((response: IDataObject) => {
|
||||
promisesResponses.forEach((response: JsonObject) => {
|
||||
if (response!.status !== 'fulfilled') {
|
||||
|
||||
if (this.continueOnFail() !== true) {
|
||||
|
||||
Reference in New Issue
Block a user