Compare commits
No commits in common. "5fc50c3f6fd0c1cbe9f546df0d38c7b2155bfaf6" and "43285a4854cb1cdb9cffd1443731b7d1af07bbe0" have entirely different histories.
5fc50c3f6f
...
43285a4854
|
@ -102,21 +102,3 @@ func (w Warehouse) UpdateWarehouseConfig(p model.UpdatePayload) error {
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// BulkWriteWarehouseConfig ...
|
|
||||||
func (w Warehouse) BulkWriteWarehouseConfig(p model.UpdatePayload) error {
|
|
||||||
msg, err := natsio.GetServer().Request(subject.Warehouse.BulkWriteWarehouseConfig, bsonToBytes(p))
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
var r struct {
|
|
||||||
Error string `json:"error"`
|
|
||||||
}
|
|
||||||
if err = json.Unmarshal(msg.Data, &r); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if r.Error != "" {
|
|
||||||
return errors.New(r.Error)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
|
@ -33,7 +33,6 @@ var Warehouse = struct {
|
||||||
UpdateStatusWarehousePendingInactive string
|
UpdateStatusWarehousePendingInactive string
|
||||||
UpdateIsSellyMall string
|
UpdateIsSellyMall string
|
||||||
UpdateWarehouseConfig string
|
UpdateWarehouseConfig string
|
||||||
BulkWriteWarehouseConfig string
|
|
||||||
}{
|
}{
|
||||||
SyncWarehouseIntoServiceSupplier: getWarehouseValue("sync_warehouse_into_service_supplier"),
|
SyncWarehouseIntoServiceSupplier: getWarehouseValue("sync_warehouse_into_service_supplier"),
|
||||||
CreateWarehouseIntoServiceSupplier: getWarehouseValue("create_warehouse_into_service_supplier"),
|
CreateWarehouseIntoServiceSupplier: getWarehouseValue("create_warehouse_into_service_supplier"),
|
||||||
|
@ -59,5 +58,4 @@ var Warehouse = struct {
|
||||||
UpdateStatusWarehousePendingInactive: getWarehouseValue("update_pending_active_product_by_warehouse_ids"),
|
UpdateStatusWarehousePendingInactive: getWarehouseValue("update_pending_active_product_by_warehouse_ids"),
|
||||||
UpdateIsSellyMall: getWarehouseValue("update_is_selly_mall"),
|
UpdateIsSellyMall: getWarehouseValue("update_is_selly_mall"),
|
||||||
UpdateWarehouseConfig: getWarehouseValue("update_warehouse_config"),
|
UpdateWarehouseConfig: getWarehouseValue("update_warehouse_config"),
|
||||||
BulkWriteWarehouseConfig: getWarehouseValue("bulk_write_warehouse_config"),
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue