This commit is contained in:
aditya.siregar
2025-05-31 18:16:11 +07:00
parent 2b1c49ad63
commit 40b5ab5964
2 changed files with 3 additions and 29 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ type CustomerSearch struct {
func (b *CustomerList) ToCustomerList() []*Customer {
var users []*Customer
for _, user := range *b {
if user.UserType == "CUSTOMER" {
if len(user.Name) > 0 {
users = append(users, user.ToCustomer())
}
}