diff --git a/bro.config.js b/bro.config.js index 63d44da..4ab3829 100644 --- a/bro.config.js +++ b/bro.config.js @@ -19,7 +19,7 @@ module.exports = { 'dry-wash.arm': '/arm/*', }, features: { - 'dry-wash-pl': { + 'dry-wash': { // add your features here in the format [featureName]: { value: string } 'order-view-status-polling': { value: '3000' } }, diff --git a/src/__data__/features.ts b/src/__data__/features.ts index 124dba0..4366694 100644 --- a/src/__data__/features.ts +++ b/src/__data__/features.ts @@ -1,12 +1,12 @@ import { getFeatures } from "@brojs/cli"; -const features = getFeatures('dry-wash-pl'); +const features = getFeatures('dry-wash'); export const FEATURE = { orderViewStatusPolling: { - isOn: Boolean(features['order-view-status-polling']), + isOn: Boolean(features?.['order-view-status-polling']), getValue: () => { - const interval = parseInt(features['order-view-status-polling'].value); + const interval = parseInt(features?.['order-view-status-polling']?.value); if (!Number.isNaN(interval)) { return interval; }