File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
apps/web/lib/api/workflows Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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} ;
You can’t perform that action at this time.
0 commit comments