Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-hoyle committed Feb 4, 2025
1 parent a44b219 commit 762288c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class FileRepository(db: JdbcBackend#Database)(implicit val executionContext: Ex

def getAllDescendants(fileIds: Seq[UUID]): Future[Seq[FileRow]] = {

val sql =
val plainSql =
sql"""WITH RECURSIVE children AS (
SELECT
"FileId"::text,
Expand All @@ -119,7 +119,9 @@ class FileRepository(db: JdbcBackend#Database)(implicit val executionContext: Ex
f."FileName",
f."ParentId"::text
FROM "File" f INNER JOIN children c ON c."FileId"::text = f."ParentId"::text
) SELECT * FROM children;""".as[FileRow]
) SELECT * FROM children;"""

val sql = plainSql.as[FileRow]
db.run(sql)
}

Expand Down

0 comments on commit 762288c

Please sign in to comment.