Sample commands to update the config

 avatar
unknown
plain_text
a year ago
513 B
20
Indexable
adding 'etv_bel_wh_hl_01 " to imei_enabled_warehouses config

Update the config using following command:

current_config= WarehouseService.configuration.get("app.b2b.imei_enabled_warehouses")

warehouse_to_add = "etv_bel_wh_hl_01"

updated_config=current_config+[warehouse_to_add]
puts updated_config
WarehouseService.configuration.update("app.b2b.imei_enabled_warehouses", updated_config, Time.now, nil, nil)

 
c = WarehouseService.configuration.get("app.b2b.imei_enabled_warehouses")
puts c == updated_config
 
Editor is loading...
Leave a Comment