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

This commit is contained in:
2026-04-19 19:48:12 +07:00
parent 1558cf7001
commit 80f054df63
5 changed files with 59 additions and 26 deletions

View File

@@ -75,6 +75,9 @@ func (u *UserEntity) ToResponse() *response.UserResponse {
func UsersEntityToResponse(users []*UserEntity) []*response.UserResponse {
out := make([]*response.UserResponse, 0)
if users == nil {
return out
}
for _, user := range users {
if user == nil {
continue