From 8cdfdcb4e68944b145916738d4a3527b85622416 Mon Sep 17 00:00:00 2001 From: trunglt251292 Date: Tue, 30 Aug 2022 15:15:11 +0700 Subject: [PATCH] [Update] Condition dao --- client/warehouse_dao.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/warehouse_dao.go b/client/warehouse_dao.go index 40c10a4..69c2245 100644 --- a/client/warehouse_dao.go +++ b/client/warehouse_dao.go @@ -9,7 +9,7 @@ import ( ) // DistinctWithField ... -func (w Warehouse) DistinctWithField(p model.FindWithCondition) ([]interface{}, error) { +func (w Warehouse) DistinctWithField(p model.DistinctWithField) ([]interface{}, error) { msg, err := natsio.GetServer().Request(subject.Warehouse.Distinct, bsonToBytes(p)) if err != nil { return nil, err