diff --git a/handler/users.go b/handler/users.go index 6fa0557..42a0603 100644 --- a/handler/users.go +++ b/handler/users.go @@ -42,7 +42,7 @@ func (h *Handler) GetUsers(c echo.Context) error { utils.ApplySort(tx, sortCol, isDesc) utils.ApplyFilters(tx, filterCol, filterVal) - tx = tx.Find(&users) + tx = tx.Preload("Position").Find(&users) if tx.RowsAffected == 1 { return c.JSON(http.StatusOK, users[0]) diff --git a/test.db b/test.db index 7cd6d27..d3cb85d 100644 Binary files a/test.db and b/test.db differ