@worktables/n8n-nodes-worktables 12.17.0 → 12.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4783,6 +4783,14 @@ class Worktables {
4783
4783
  }
4784
4784
  }
4785
4785
  }
4786
+ console.log('✅✅✅ Matches: ', matches);
4787
+ console.log('✅✅✅ Item: ', item);
4788
+ console.log('✅✅✅ Identifier Column: ', identifierColumn);
4789
+ console.log('✅✅✅ Identifier Value: ', identifierValue);
4790
+ console.log('✅✅✅ Is Subitem: ', isSubitem);
4791
+ console.log('✅✅✅ Search Board ID: ', searchBoardId);
4792
+ console.log('✅✅✅ Found Item ID: ', foundItemId);
4793
+ console.log('✅✅✅ Found Item Board ID: ', foundItemBoardId);
4786
4794
  if (matches) {
4787
4795
  foundItemId = item.id;
4788
4796
  if (isSubitem) {
@@ -4839,18 +4847,23 @@ class Worktables {
4839
4847
  console.log(`Successfully updated ${isSubitem ? 'subitem' : 'item'}:`, itemData.id);
4840
4848
  }
4841
4849
  else {
4842
- console.log(`Update response missing item data, will create new ${isSubitem ? 'subitem' : 'item'} instead`);
4843
- itemUpdated = false;
4850
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), {
4851
+ message: `Item found (ID: ${foundItemId}) but update failed: Update response missing item data.`,
4852
+ });
4844
4853
  }
4845
4854
  }
4846
4855
  else {
4847
4856
  if (responseData.errors) {
4848
- console.log('Error updating item:', JSON.stringify(responseData.errors));
4857
+ const errorMessage = responseData.errors.map((err) => err.message || JSON.stringify(err)).join('; ');
4858
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), {
4859
+ message: `Item found (ID: ${foundItemId}) but update failed: ${errorMessage}`,
4860
+ });
4849
4861
  }
4850
4862
  else {
4851
- console.log('Update response missing data, will create new item instead');
4863
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), {
4864
+ message: `Item found (ID: ${foundItemId}) but update failed: Update response missing data.`,
4865
+ });
4852
4866
  }
4853
- itemUpdated = false;
4854
4867
  }
4855
4868
  }
4856
4869
  else {