Rename old column name for user

Fixes #314
This commit is contained in:
Jan Eitzinger 2024-12-10 16:35:43 +01:00
parent 010c903c74
commit 4849928288
Signed by: moebiusband
GPG Key ID: 2574BA29B90D6DD5

View File

@ -73,7 +73,7 @@ func (r *UserRepository) GetUser(username string) (*schema.User, error) {
func (r *UserRepository) GetLdapUsernames() ([]string, error) {
var users []string
rows, err := r.DB.Query(`SELECT username FROM hpc_user WHERE user.ldap = 1`)
rows, err := r.DB.Query(`SELECT username FROM hpc_user WHERE hpc_user.ldap = 1`)
if err != nil {
log.Warn("Error while querying usernames")
return nil, err