Compare commits

...

2 Commits

Author SHA1 Message Date
RustamRu
9111724519 Merge branch 'main' of ssh://85.143.175.152:222/dry_wash_inc/dry-wash-pl
All checks were successful
it-academy/dry-wash-pl/pipeline/head This commit looks good
2025-02-16 11:45:55 +03:00
RustamRu
c2511e0917 fix: order view status polling 2025-02-16 11:45:42 +03:00
2 changed files with 4 additions and 4 deletions

View File

@ -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' }
},

View File

@ -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;
}