mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(KoboToolbox Node): fix hook logs not working correctly (#4286)
This commit is contained in:
@@ -323,13 +323,17 @@ export class KoBoToolbox implements INodeType {
|
||||
// Hook: getLogs
|
||||
// ----------------------------------
|
||||
const hookId = this.getNodeParameter('hookId', i) as string;
|
||||
const startDate = this.getNodeParameter('startDate', i, null);
|
||||
const endDate = this.getNodeParameter('endDate', i, null);
|
||||
const status = this.getNodeParameter('status', i, null);
|
||||
|
||||
responseData = await koBoToolboxApiRequest.call(this, {
|
||||
url: `/api/v2/assets/${formId}/hooks/${hookId}/logs/`,
|
||||
qs: {
|
||||
start: this.getNodeParameter('start', i, 0) as number,
|
||||
limit: this.getNodeParameter('limit', i, 1000) as number,
|
||||
...(startDate && { start: startDate }),
|
||||
...(endDate && { end: endDate }),
|
||||
...(status && { status }),
|
||||
},
|
||||
scroll: this.getNodeParameter('returnAll', i) as boolean,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -342,6 +346,7 @@ export class KoBoToolbox implements INodeType {
|
||||
|
||||
responseData = [
|
||||
await koBoToolboxApiRequest.call(this, {
|
||||
method: 'PATCH',
|
||||
url: `/api/v2/assets/${formId}/hooks/${hookId}/logs/${logId}/retry/`,
|
||||
}),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user