Skip to content

Commit ab7e700

Browse files
committed
fix: use orchestratorConstruct.function.currentVersion to resolve IFunction type error
IFunction interface does not expose currentVersion; use the concrete NodejsFunction reference (orchestratorConstruct.function) which has the property available.
1 parent c57c6a5 commit ab7e700

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/loyalty-point-service/lib/loyalty-tier-workflow/loyaltyTierWorkflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class LoyaltyTierWorkflow extends Construct {
175175
// results in an unqualified ARN that the policy does not match.
176176
// currentVersion resolves to the version deployed in this synthesis.
177177
ORCHESTRATOR_FUNCTION_NAME:
178-
this.tierUpgradeOrchestratorFunction.currentVersion.functionArn,
178+
orchestratorConstruct.function.currentVersion.functionArn,
179179
},
180180
buildDef:
181181
"./src/loyalty-tier-workflow/trigger/buildHandleLoyaltyPointsUpdated.js",

0 commit comments

Comments
 (0)