Skip to content

Commit bbeabfe

Browse files
authored
refactor: update workflowId format in dissectMember (#4287)
Signed-off-by: Yeganathan S <63534555+skwowet@users.noreply.github.com>
1 parent 085711b commit bbeabfe

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

services/apps/script_executor_worker/src/workflows/dissectMember.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
continueAsNew,
55
proxyActivities,
66
startChild,
7-
workflowInfo,
87
} from '@temporalio/workflow'
98

109
import { IMemberUnmergeBackup, IUnmergeBackup, MemberIdentityType } from '@crowd/types'
@@ -24,8 +23,6 @@ const common = proxyActivities<typeof commonActivities>({
2423
})
2524

2625
export async function dissectMember(args: IDissectMemberArgs): Promise<void> {
27-
const info = workflowInfo()
28-
2926
// check if memberId exist in db before unmerging
3027
const member = await activity.findMemberById(args.memberId)
3128

@@ -102,7 +99,7 @@ export async function dissectMember(args: IDissectMemberArgs): Promise<void> {
10299
await common.waitForTemporalWorkflowExecutionFinish(workflowId)
103100

104101
await startChild(dissectMember, {
105-
workflowId: `${info.workflowId}/${mergeAction.secondaryId}`,
102+
workflowId: `dissectMember/${mergeAction.secondaryId}`,
106103
cancellationType: ChildWorkflowCancellationType.ABANDON,
107104
parentClosePolicy: ParentClosePolicy.PARENT_CLOSE_POLICY_ABANDON,
108105
retry: {

0 commit comments

Comments
 (0)