Compare commits
No commits in common. "9111724519ec078b6bd5161075ef3cd233469347" and "b7d935f557fbab3fc845857fe580906a3b113854" have entirely different histories.
9111724519
...
b7d935f557
@ -19,7 +19,7 @@ module.exports = {
|
||||
'dry-wash.arm': '/arm/*',
|
||||
},
|
||||
features: {
|
||||
'dry-wash': {
|
||||
'dry-wash-pl': {
|
||||
// add your features here in the format [featureName]: { value: string }
|
||||
'order-view-status-polling': { value: '3000' }
|
||||
},
|
||||
|
@ -1,12 +1,12 @@
|
||||
import { getFeatures } from "@brojs/cli";
|
||||
|
||||
const features = getFeatures('dry-wash');
|
||||
const features = getFeatures('dry-wash-pl');
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user