diff --git a/package.json b/package.json index 998bbc8ebe..e9c645caf4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "activepieces", "version": "0.29.1", - "rcVersion": "0.30.0-rc.6", + "rcVersion": "0.30.0-rc.7", "scripts": { "prepare": "husky install", "serve:frontend": "nx serve ui-core", diff --git a/packages/server/api/src/app/app-event-routing/app-event-routing.module.ts b/packages/server/api/src/app/app-event-routing/app-event-routing.module.ts index 1a8f1f5bb1..ed0c4c0163 100644 --- a/packages/server/api/src/app/app-event-routing/app-event-routing.module.ts +++ b/packages/server/api/src/app/app-event-routing/app-event-routing.module.ts @@ -16,6 +16,7 @@ import { FastifyRequest } from 'fastify' import { StatusCodes } from 'http-status-codes' import { DEFAULT_PRIORITY } from '../workers/queue/queue-manager' import { appEventRoutingService } from './app-event-routing.service' +import { flowQueue } from '../workers/queue' const appWebhooks: Record = { slack, @@ -97,7 +98,7 @@ export const appEventRoutingController: FastifyPluginAsyncTypebox = async ( }) const eventsQueue = listeners.map(async (listener) => { const requestId = apId() - return { + return flowQueue.add({ id: requestId, type: JobType.WEBHOOK, data: { @@ -110,7 +111,7 @@ export const appEventRoutingController: FastifyPluginAsyncTypebox = async ( simulate: false, }, priority: DEFAULT_PRIORITY, - } + }) }) rejectedPromiseHandler(Promise.all(eventsQueue)) return requestReply.status(StatusCodes.OK).send({})