Skip to content

Commit a4f87cb

Browse files
ssilare-adobesahil9001Sugandhgyl
authored
feat: added await for tier-client (#1587)
Please ensure your pull request adheres to the following guidelines: - [ ] make sure to link the related issues in this description - [ ] when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes - [ ] If data sources for any opportunity has been updated/added, please update the [wiki](https://wiki.corp.adobe.com/display/AEMSites/Data+Sources+for+Opportunities) for same opportunity. ## Related Issues Thanks for contributing! Signed-off-by: Sahil Silare <[email protected]> Co-authored-by: Sahil Silare <[email protected]> Co-authored-by: sugandh <[email protected]>
1 parent 28e0bad commit a4f87cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/site-validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export async function checkSiteRequiresValidation(site, context) {
3939

4040
// Entitlement-driven: require validation only for PAID tier of ASO
4141
try {
42-
const tierClient = TierClient.createForSite(context, site, ASO_PRODUCT_CODE);
42+
const tierClient = await TierClient.createForSite(context, site, ASO_PRODUCT_CODE);
4343
const { entitlement } = await tierClient.checkValidEntitlement();
4444
const tier = entitlement?.getTier?.() ?? null;
4545
const productCode = entitlement?.getProductCode?.() ?? null;

0 commit comments

Comments
 (0)