UPDATE: fix bug
All checks were successful
Build and Release / release (push) Successful in 1m7s

This commit is contained in:
2026-04-14 17:18:02 +07:00
parent 7fe1393c98
commit 7f30dff737

View File

@@ -178,7 +178,7 @@ func (m *verificationService) fillSearchArgs(arg *sqlc.SearchUserVerificationsPa
if len(dto.Statuses) > 0 { if len(dto.Statuses) > 0 {
for _, id := range dto.Statuses { for _, id := range dto.Statuses {
if u := constants.ParseStatusTypeText(id); u == constants.StatusUnknown { if u := constants.ParseStatusTypeText(id); u != constants.StatusUnknown {
arg.Statuses = append(arg.Statuses, u.Int16()) arg.Statuses = append(arg.Statuses, u.Int16())
} }
} }
@@ -186,7 +186,7 @@ func (m *verificationService) fillSearchArgs(arg *sqlc.SearchUserVerificationsPa
if len(dto.VerifyTypes) > 0 { if len(dto.VerifyTypes) > 0 {
for _, id := range dto.VerifyTypes { for _, id := range dto.VerifyTypes {
if u := constants.ParseVerifyTypeText(id); u == constants.VerifyUnknown { if u := constants.ParseVerifyTypeText(id); u != constants.VerifyUnknown {
arg.VerifyTypes = append(arg.VerifyTypes, u.Int16()) arg.VerifyTypes = append(arg.VerifyTypes, u.Int16())
} }
} }