3
0

Temporary fix for user listing via compose user field

This commit is contained in:
Tomaž Jerman 2024-03-01 13:18:54 +01:00
parent 01bd594118
commit 566ff41b6b

View File

@ -110,6 +110,11 @@ func (ctrl User) List(ctx context.Context, r *request.UserList) (interface{}, er
}
)
// @todo improve this either on the request parsing stage or query building stage
if len(f.UserID) == 1 && f.UserID[0] == "" {
f.UserID = nil
}
if f.Paging, err = filter.NewPaging(r.Limit, r.PageCursor); err != nil {
return nil, err
}