Update CustomerResponse JSON Tags and Fix Comment in Tender Repository
- Changed BSON tags to JSON tags in the CustomerResponse struct to ensure proper serialization in API responses. - Updated the comment in the buildSearchFilter method to correct a typo, enhancing clarity in the codebase.
This commit is contained in:
@@ -417,7 +417,7 @@ func (r *tenderRepository) GetTenderCountByClassification(ctx context.Context) (
|
||||
return counts, nil
|
||||
}
|
||||
|
||||
// buildSearchFilter builds MongoDB filter from search vvvform
|
||||
// buildSearchFilter builds MongoDB filter from search form
|
||||
func (r *tenderRepository) buildSearchFilter(form *SearchForm) bson.M {
|
||||
filter := bson.M{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user