@fachkraftfreund/n8n-nodes-supabase 1.4.2 → 1.4.3

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.
@@ -910,13 +910,16 @@ async function handleBatchCount(supabase, itemCount) {
910
910
  if (error)
911
911
  throw new Error((0, supabaseClient_1.formatSupabaseError)(error));
912
912
  if (!Array.isArray(data) || data.length === 0) {
913
- return [{ json: { table, groupByColumn, counts: [], message: 'No rows matched' } }];
914
- }
915
- return data.map((row) => ({
916
- json: {
917
- [groupByColumn]: row[groupByColumn],
918
- count: Number(row.count),
919
- table,
920
- },
921
- }));
913
+ return [{ json: { table, groupByColumn, data: [] } }];
914
+ }
915
+ return [{
916
+ json: {
917
+ table,
918
+ groupByColumn,
919
+ data: data.map((row) => ({
920
+ [groupByColumn]: row[groupByColumn],
921
+ count: Number(row.count),
922
+ })),
923
+ },
924
+ }];
922
925
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fachkraftfreund/n8n-nodes-supabase",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Comprehensive n8n community node for Supabase with database and storage operations",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",