Skip to content

Commit ba8e626

Browse files
committed
Update execute-move-group-workflow.ts
1 parent 19b7919 commit ba8e626

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/web/lib/api/workflows/execute-move-group-workflow.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const executeMoveGroupWorkflow = async ({
6262
`Partner meets the trigger condition for the workflow ${workflow.id}. Executing..`,
6363
);
6464

65-
const group = await prisma.partnerGroup.findUnique({
65+
const newGroup = await prisma.partnerGroup.findUnique({
6666
where: {
6767
id: newGroupId,
6868
},
@@ -76,7 +76,7 @@ export const executeMoveGroupWorkflow = async ({
7676
},
7777
});
7878

79-
if (!group) {
79+
if (!newGroup) {
8080
console.log(`Group ${newGroupId} not found. Skipping..`);
8181
return;
8282
}
@@ -95,6 +95,6 @@ export const executeMoveGroupWorkflow = async ({
9595
programId,
9696
partnerIds: [partnerId],
9797
userId: owners.users[0].id,
98-
group,
98+
group: newGroup,
9999
});
100100
};

0 commit comments

Comments
 (0)