mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
[pre-release] Webhook trigger isn't working & changed the workflow-node(query) creation API endpoint [dependency PR] (#13237)
* fix: update workflow query endpoint to use correct URL * chore: update subproject commits for frontend and server * fix: add request parameter to triggerWorkflow method in controller and interface
This commit is contained in:
parent
5599a8caa2
commit
8824a26110
5 changed files with 9 additions and 9 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 2eeda8ae9a78ad82cd996ce4307f257268036cb7
|
||||
Subproject commit c2266d92a3e5732234874fd99b28396ae9f6f44e
|
||||
|
|
@ -49,9 +49,7 @@ function createWorkflowQuery(app_id, app_version_id, name, kind, options, data_s
|
|||
};
|
||||
|
||||
const requestOptions = { method: 'POST', headers: authHeader(), credentials: 'include', body: JSON.stringify(body) };
|
||||
return fetch(`${config.apiUrl}/data-queries/workflow-node/versions/${app_version_id}`, requestOptions).then(
|
||||
handleResponse
|
||||
);
|
||||
return fetch(`${config.apiUrl}/data-queries/workflow-node`, requestOptions).then(handleResponse);
|
||||
}
|
||||
|
||||
function update(id, versionId, name, options, dataSourceId) {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 5edf1e4b0851cec1d06a14f9984c681e53ebbe77
|
||||
Subproject commit 466223bc007f5b0b5e90222e7992cfa154aa2d05
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import { Controller, Post, Param, Body, Patch, Query, Res, Get, Sse } from '@nestjs/common';
|
||||
import { Controller, Post, Param, Body, Patch, Query, Res, Get, Sse, Req } from '@nestjs/common';
|
||||
import { Response } from 'express';
|
||||
import { IWorkflowWebhooksController } from '../interfaces/IWorkflowWebhooksController';
|
||||
import { InitModule } from '@modules/app/decorators/init-module';
|
||||
|
|
@ -20,7 +20,8 @@ export class WorkflowWebhooksController implements IWorkflowWebhooksController {
|
|||
@Param('id') id: any,
|
||||
@Body() workflowParams,
|
||||
@Query('environment') environment: string,
|
||||
@Res({ passthrough: true }) response: Response
|
||||
@Res({ passthrough: true }) response: Response,
|
||||
@Req() req: Request
|
||||
): Promise<any> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
|
|
@ -31,7 +32,8 @@ export class WorkflowWebhooksController implements IWorkflowWebhooksController {
|
|||
@Param('app') app: any,
|
||||
@Param('idOrName') idOrName: string,
|
||||
@Body() workflowParams: Record<string, unknown>,
|
||||
@Query('environment') environment: string
|
||||
@Query('environment') environment: string,
|
||||
@Req() req: Request
|
||||
): Promise<any> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { Response } from 'express';
|
||||
|
||||
export interface IWorkflowWebhooksController {
|
||||
triggerWorkflow(id: any, workflowParams: any, environment: string, response: Response): Promise<any>;
|
||||
triggerWorkflow(id: any, workflowParams: any, environment: string, response: Response, req: Request): Promise<any>;
|
||||
|
||||
updateWorkflow(id: any, workflowValuesToUpdate: any): Promise<any>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue