Skip to content

Commit

Permalink
Do not use language tag on username when fetching user by name
Browse files Browse the repository at this point in the history
  • Loading branch information
kostobog committed May 16, 2024
1 parent 3d6e15e commit bc8acfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cz/cvut/kbss/analysis/dao/UserDao.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public Optional<User> findByUsername(String username) {
type)
.setParameter("type", typeUri)
.setParameter("hasUsername", URI.create(Vocabulary.s_p_username))
.setParameter("username", username, config.getLanguage())
.setParameter("username", username)
.getSingleResult());
} catch (NoResultException e) {
return Optional.empty();
Expand Down

0 comments on commit bc8acfc

Please sign in to comment.