mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-24 14:24:47 +08:00
change author filter to an exact match
* required for listing user projects
This commit is contained in:
parent
d96eced54a
commit
aa5905db3b
@ -31,7 +31,7 @@ public class ProjectAuthorFilter implements Filter<ProjectAuthorFilterInstance>
|
||||
|
||||
@Override
|
||||
public void createSql(StringBuilder sb, SqlStatement<?> q) {
|
||||
sb.append(" AND ").append("p.owner_name").append(" LIKE ").append("'%' || :ownerName || '%'");
|
||||
sb.append(" AND ").append("p.owner_name").append(" = ").append(":ownerName");
|
||||
q.bind("ownerName", ownerName);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user