Skip to content

Commit

Permalink
use .start instead since we're calling it from an activity
Browse files Browse the repository at this point in the history
  • Loading branch information
epipav committed Aug 15, 2024
1 parent bf19881 commit aef10ba
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ export async function recalculateActivityAffiliationsOfOrganizationSynchronous(
organizationId: string,
tenantId: string,
): Promise<void> {
await startChild('organizationUpdate', {
await svc.temporal.workflow.start('organizationUpdate', {
taskQueue: 'profiles',
workflowId: `${TemporalWorkflowId.ORGANIZATION_UPDATE}/${tenantId}/${organizationId}`,
cancellationType: ChildWorkflowCancellationType.ABANDON,
parentClosePolicy: ParentClosePolicy.PARENT_CLOSE_POLICY_ABANDON,
followRuns: true,
retry: {
maximumAttempts: 10,
},
Expand Down

0 comments on commit aef10ba

Please sign in to comment.