Make findByPrimaryKeysAction public (#4079)

This commit is contained in:
benthecarman 2022-02-11 12:06:56 -06:00 committed by GitHub
parent eeabe5cd77
commit 2166faf61d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,8 +40,10 @@ abstract class CRUDAction[T, PrimaryKeyType](implicit
protected def findByPrimaryKeys(
ids: Vector[PrimaryKeyType]): Query[Table[T], T, Seq]
protected def findByPrimaryKeysAction(ids: Vector[
PrimaryKeyType]): DBIOAction[Vector[T], NoStream, Effect.Read] = {
def findByPrimaryKeysAction(ids: Vector[PrimaryKeyType]): DBIOAction[
Vector[T],
NoStream,
Effect.Read] = {
if (ids.isEmpty) {
DBIO.successful(Vector.empty)
} else {