Skip to content

Commit

Permalink
fix: enable imports in siteConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
dzehnder committed Mar 5, 2025
1 parent a50e1e5 commit 0e5851b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/support/slack/commands/onboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// todo: prototype - untested
/* c8 ignore start */
import { Site as SiteModel, Organization as OrganizationModel } from '@adobe/spacecat-shared-data-access';
import { Config } from '@adobe/spacecat-shared-data-access/src/models/site/config.js';
import { isValidUrl, isObject, isNonEmptyArray } from '@adobe/spacecat-shared-utils';
import os from 'os';
import path from 'path';
Expand Down Expand Up @@ -181,7 +182,9 @@ function OnboardCommand(context) {

for (const importType of importTypes) {
/* eslint-disable no-await-in-loop */
site.enableImport(importType);
const siteConfig = site.getConfig();
siteConfig.enableImport(importType);
site.setConfig(Config.toDynamoItem(siteConfig));
await site.save();
await triggerImportRun(
configuration,
Expand Down

0 comments on commit 0e5851b

Please sign in to comment.