@fachkraftfreund/n8n-nodes-supabase 1.2.19 → 1.2.20
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.
|
@@ -912,7 +912,8 @@ class Supabase {
|
|
|
912
912
|
}
|
|
913
913
|
try {
|
|
914
914
|
const results = await database_1.executeBulkDatabaseOperation.call(this, supabase, operation, items.length);
|
|
915
|
-
|
|
915
|
+
for (const r of results)
|
|
916
|
+
returnData.push(r);
|
|
916
917
|
}
|
|
917
918
|
catch (error) {
|
|
918
919
|
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
@@ -927,7 +928,8 @@ class Supabase {
|
|
|
927
928
|
else if (resource === 'database' && operation === 'read') {
|
|
928
929
|
try {
|
|
929
930
|
const operationResults = await database_1.executeDatabaseOperation.call(this, supabase, operation, 0, credentials.host);
|
|
930
|
-
|
|
931
|
+
for (const r of operationResults)
|
|
932
|
+
returnData.push(r);
|
|
931
933
|
}
|
|
932
934
|
catch (error) {
|
|
933
935
|
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
@@ -952,7 +954,8 @@ class Supabase {
|
|
|
952
954
|
else {
|
|
953
955
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown resource: ${resource}`);
|
|
954
956
|
}
|
|
955
|
-
|
|
957
|
+
for (const r of operationResults)
|
|
958
|
+
returnData.push(r);
|
|
956
959
|
}
|
|
957
960
|
catch (error) {
|
|
958
961
|
const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred';
|
|
@@ -6,9 +6,12 @@ async function executeDatabaseOperation(supabase, operation, itemIndex, hostUrl)
|
|
|
6
6
|
const returnData = [];
|
|
7
7
|
try {
|
|
8
8
|
switch (operation) {
|
|
9
|
-
case 'read':
|
|
10
|
-
|
|
9
|
+
case 'read': {
|
|
10
|
+
const rows = await handleRead.call(this, supabase, itemIndex, hostUrl);
|
|
11
|
+
for (const r of rows)
|
|
12
|
+
returnData.push(r);
|
|
11
13
|
break;
|
|
14
|
+
}
|
|
12
15
|
case 'delete':
|
|
13
16
|
returnData.push(...await handleDelete.call(this, supabase, itemIndex, hostUrl));
|
|
14
17
|
break;
|
|
@@ -296,7 +299,8 @@ async function handleRead(supabase, itemIndex, hostUrl) {
|
|
|
296
299
|
if (isMultiChunk && (userOffset > 0 || returnData.length > limit)) {
|
|
297
300
|
const sliced = returnData.slice(userOffset, userOffset + limit);
|
|
298
301
|
returnData.length = 0;
|
|
299
|
-
|
|
302
|
+
for (const r of sliced)
|
|
303
|
+
returnData.push(r);
|
|
300
304
|
}
|
|
301
305
|
}
|
|
302
306
|
if (returnData.length === 0) {
|
package/package.json
CHANGED