Use the connection we open
This commit is contained in:
parent
3ed1cc7868
commit
3cf61f71ed
@ -64,12 +64,12 @@ public class CommunityRepository extends RepositoryBase
|
||||
_repo = statusRepo;
|
||||
_us = us;
|
||||
}
|
||||
|
||||
|
||||
public void communityExists(String name, Runnable onTrue, Runnable onFalse)
|
||||
{
|
||||
try (Connection connection = getConnection())
|
||||
{
|
||||
executeQuery("SELECT name FROM communities WHERE name=?", resultSet ->
|
||||
executeQuery(connection, "SELECT name FROM communities WHERE name=?", resultSet ->
|
||||
{
|
||||
if (resultSet.next())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user