fix: order view status polling
This commit is contained in:
parent
52fec13377
commit
c2511e0917
@ -19,7 +19,7 @@ module.exports = {
|
|||||||
'dry-wash.arm': '/arm/*',
|
'dry-wash.arm': '/arm/*',
|
||||||
},
|
},
|
||||||
features: {
|
features: {
|
||||||
'dry-wash-pl': {
|
'dry-wash': {
|
||||||
// add your features here in the format [featureName]: { value: string }
|
// add your features here in the format [featureName]: { value: string }
|
||||||
'order-view-status-polling': { value: '3000' }
|
'order-view-status-polling': { value: '3000' }
|
||||||
},
|
},
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import { getFeatures } from "@brojs/cli";
|
import { getFeatures } from "@brojs/cli";
|
||||||
|
|
||||||
const features = getFeatures('dry-wash-pl');
|
const features = getFeatures('dry-wash');
|
||||||
|
|
||||||
export const FEATURE = {
|
export const FEATURE = {
|
||||||
orderViewStatusPolling: {
|
orderViewStatusPolling: {
|
||||||
isOn: Boolean(features['order-view-status-polling']),
|
isOn: Boolean(features?.['order-view-status-polling']),
|
||||||
getValue: () => {
|
getValue: () => {
|
||||||
const interval = parseInt(features['order-view-status-polling'].value);
|
const interval = parseInt(features?.['order-view-status-polling']?.value);
|
||||||
if (!Number.isNaN(interval)) {
|
if (!Number.isNaN(interval)) {
|
||||||
return interval;
|
return interval;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user