Skip to content

Commit 6d4063f

Browse files
committed
added support for am2.0 in audit
1 parent a0c67ec commit 6d4063f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • packages/contentstack-audit/src/modules

packages/contentstack-audit/src/modules/assets.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ export default class Assets extends BaseClass {
237237
const logConfig = configHandler.get('log') || {};
238238
const showConsoleLogs = logConfig.showConsoleLogs ?? false;
239239

240+
if (!this.resolvedBasePaths.length) {
241+
this.resolvedBasePaths = this.resolveAssetBasePaths();
242+
}
243+
240244
for (const { path: spacePath, spaceId } of this.resolvedBasePaths) {
241245
log.debug(`Processing asset path: ${spacePath} (spaceId=${spaceId ?? 'none'})`, this.config.auditContext);
242246

0 commit comments

Comments
 (0)