Skip to content

Commit 06d7e2a

Browse files
Merge pull request #2618 from hamzaafridi/durable-provider-example-fix
typo in durable providers example
2 parents 823ae41 + 2cf48b5 commit 06d7e2a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

content/fundamentals/provider-scopes.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,9 @@ If you want to register the payload for a durable tree, use the following constr
205205
// The return of `AggregateByTenantContextIdStrategy#attach` method:
206206
return {
207207
resolve: (info: HostComponentInfo) =>
208-
info.isTreeDurable ? tenantSubTreeId : contextId;
209-
},
208+
info.isTreeDurable ? tenantSubTreeId : contextId,
210209
payload: { tenantId },
211-
}
210+
}
212211
```
213212

214213
Now whenever you inject the `REQUEST` provider (or `CONTEXT` for GraphQL applications) using the `@Inject(REQUEST)`/`@Inject(CONTEXT)`, the `payload` object would be injected (consisting of a single property - `tenantId` in this case).

0 commit comments

Comments
 (0)