Warehouse nats #13

Merged
trunglt251292 merged 7 commits from warehouse-nats into develop 2022-08-30 07:47:52 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 6a7db08c98 - Show all commits

View File

@ -28,7 +28,7 @@ func (w Warehouse) DistinctWithField(p model.FindWithCondition) ([]interface{},
}
// FindOneByCondition ...
func (w Warehouse) FindOneByCondition(p model.FindWithCondition) (*model.WarehouseNatsResponse, error) {
func (w Warehouse) FindOneByCondition(p model.FindOneCondition) (*model.WarehouseNatsResponse, error) {
msg, err := natsio.GetServer().Request(subject.Warehouse.FindOne, bsonToBytes(p))
if err != nil {
return nil, err