Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 7187f0d

Browse files
saimanojharshithmullapudi
authored andcommitted
Fix: check for all action entities to a integration
1 parent 3b74333 commit 7187f0d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/server/src/modules/webhook/webhook.service.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,11 @@ export default class WebhookService {
9292
const actionEntities = await this.prisma.actionEntity.findMany({
9393
where: {
9494
type: ActionTypesEnum.SOURCE_WEBHOOK,
95-
entity: sourceName,
96-
action: { workspaceId, status: ActionStatusEnum.ACTIVE },
95+
action: {
96+
workspaceId,
97+
status: ActionStatusEnum.ACTIVE,
98+
integrations: { has: sourceName },
99+
},
97100
deleted: null,
98101
},
99102
include: { action: true },

0 commit comments

Comments
 (0)