mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
refactor(Airtable Node): Prevent reporting to Sentry failure to find table (no-changelog) (#7521)
https://n8nio.sentry.io/issues/4356342982/?project=4503924908883968&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=14d&stream_index=8
This commit is contained in:
@@ -118,7 +118,9 @@ export async function viewSearch(
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!tableData) {
|
if (!tableData) {
|
||||||
throw new NodeOperationError(this.getNode(), 'Table information could not be found!');
|
throw new NodeOperationError(this.getNode(), 'Table information could not be found!', {
|
||||||
|
severity: 'warning',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filter) {
|
if (filter) {
|
||||||
|
|||||||
@@ -20,7 +20,9 @@ export async function getColumns(this: ILoadOptionsFunctions): Promise<INodeProp
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!tableData) {
|
if (!tableData) {
|
||||||
throw new NodeOperationError(this.getNode(), 'Table information could not be found!');
|
throw new NodeOperationError(this.getNode(), 'Table information could not be found!', {
|
||||||
|
severity: 'warning',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const result: INodePropertyOptions[] = [];
|
const result: INodePropertyOptions[] = [];
|
||||||
@@ -79,7 +81,9 @@ export async function getAttachmentColumns(
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!tableData) {
|
if (!tableData) {
|
||||||
throw new NodeOperationError(this.getNode(), 'Table information could not be found!');
|
throw new NodeOperationError(this.getNode(), 'Table information could not be found!', {
|
||||||
|
severity: 'warning',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const result: INodePropertyOptions[] = [];
|
const result: INodePropertyOptions[] = [];
|
||||||
|
|||||||
@@ -78,7 +78,9 @@ export async function getColumns(this: ILoadOptionsFunctions): Promise<ResourceM
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!tableData) {
|
if (!tableData) {
|
||||||
throw new NodeOperationError(this.getNode(), 'Table information could not be found!');
|
throw new NodeOperationError(this.getNode(), 'Table information could not be found!', {
|
||||||
|
severity: 'warning',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const fields: ResourceMapperField[] = [];
|
const fields: ResourceMapperField[] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user