Compare commits
	
		
			No commits in common. "b240d7a9d179ac4a7ae2f164ce1970e57c231e70" and "ba8af50460f052ec614998f789836a7817520180" have entirely different histories.
		
	
	
		
			b240d7a9d1
			...
			ba8af50460
		
	
		| 
						 | 
					@ -202,21 +202,3 @@ func (w Warehouse) UpdateStatusWarehousePendingInactive(p model.UpdateStatusWare
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return nil
 | 
						return nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
// MigrationSellyMall ...
 | 
					 | 
				
			||||||
func (w Warehouse) MigrationSellyMall() error {
 | 
					 | 
				
			||||||
	_, err := natsio.GetServer().Request(subject.Warehouse.MigrationIsSellyMall, toBytes(""))
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	var r struct {
 | 
					 | 
				
			||||||
		Error string `json:"error"`
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if r.Error != "" {
 | 
					 | 
				
			||||||
		return errors.New(r.Error)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -29,7 +29,6 @@ var Warehouse = struct {
 | 
				
			||||||
	GetWarehouses                        string
 | 
						GetWarehouses                        string
 | 
				
			||||||
	UpdateORDeliveryStatus               string
 | 
						UpdateORDeliveryStatus               string
 | 
				
			||||||
	UpdateStatusWarehousePendingInactive string
 | 
						UpdateStatusWarehousePendingInactive string
 | 
				
			||||||
	MigrationIsSellyMall                 string
 | 
					 | 
				
			||||||
}{
 | 
					}{
 | 
				
			||||||
	CreateWarehouseIntoServiceSupplier:   getWarehouseValue("create_warehouse_into_service_supplier"),
 | 
						CreateWarehouseIntoServiceSupplier:   getWarehouseValue("create_warehouse_into_service_supplier"),
 | 
				
			||||||
	UpdateWarehouseIntoServiceSupplier:   getWarehouseValue("update_warehouse_into_service_supplier"),
 | 
						UpdateWarehouseIntoServiceSupplier:   getWarehouseValue("update_warehouse_into_service_supplier"),
 | 
				
			||||||
| 
						 | 
					@ -51,5 +50,4 @@ var Warehouse = struct {
 | 
				
			||||||
	GetWarehouses:                        getWarehouseValue("get_warehouses"),
 | 
						GetWarehouses:                        getWarehouseValue("get_warehouses"),
 | 
				
			||||||
	UpdateORDeliveryStatus:               getWarehouseValue("update_or_delivery_status"),
 | 
						UpdateORDeliveryStatus:               getWarehouseValue("update_or_delivery_status"),
 | 
				
			||||||
	UpdateStatusWarehousePendingInactive: getWarehouseValue("update_status_warehouse_pending_inactive"),
 | 
						UpdateStatusWarehousePendingInactive: getWarehouseValue("update_status_warehouse_pending_inactive"),
 | 
				
			||||||
	MigrationIsSellyMall:                 getWarehouseValue("migration_is_selly_mall"),
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue