Skip to content

Commit

Permalink
some small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
marctalbott committed Jul 16, 2019
1 parent 0924af0 commit 8706b0e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,3 @@ object ResourceActionPatternTable extends SQLSyntaxSupport[ResourceActionPattern
rs.get(e.actionPattern)
)
}

object ResourceActionPatternTableBinders {

}
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class PostgresDirectoryDAO(protected val dbRef: DbReference,
.leftJoin(GroupTable as subGroupTable)
.on(groupMemberTable.memberGroupId, subGroupTable.id)
.where
.eq(groupTable.name, WorkbenchGroupName(groupName.value))
.eq(groupTable.name, groupName)
}.map(rs => (WorkbenchEmail(rs.string(1)), Option(rs.string(2)).map(WorkbenchUserId), Option(rs.string(3)).map(WorkbenchGroupName)))
.list().apply()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class PostgresDirectoryDAOSpec extends FlatSpec with Matchers with BeforeAndAfte

it should "load a group" in {
dao.createGroup(defaultGroup).unsafeRunSync()
val loadedGroup = dao.loadGroup(defaultGroupName).unsafeRunSync().getOrElse(fail(s"Failed to load group $defaultGroupName"))
val loadedGroup = dao.loadGroup(defaultGroup.id).unsafeRunSync().getOrElse(fail(s"Failed to load group $defaultGroupName"))
loadedGroup shouldEqual defaultGroup
}

Expand Down

0 comments on commit 8706b0e

Please sign in to comment.