Skip to content

Commit

Permalink
Fix array issue
Browse files Browse the repository at this point in the history
Signed-off-by: William <[email protected]>
  • Loading branch information
kwesidev committed Apr 12, 2024
1 parent af78bab commit 123f510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/user_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func NewUserService(db *sql.DB) *UserService {

// List a bunch of users
func (usrSrv *UserService) List(offset int, limit int) ([]models.User, error) {
users := []models.User{}
users := make([]models.User, 0)
// Get the list of users
queryString :=
`SELECT
Expand Down

0 comments on commit 123f510

Please sign in to comment.