Skip to content

Commit

Permalink
Fix like method to find pages correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
felixoi committed Oct 10, 2018
1 parent 85f43ca commit 30089ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/db/impl/schema/PageSchema.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ class PageSchema(override val service: ModelService)
this.service.find[Page](
this.modelClass,
p =>
p.projectId === page.projectId && p.name.toLowerCase === page.name.toLowerCase
&& page.parentId.isDefined && page.parentId.fold(true: Rep[Boolean])(p.parentId.get === _)
p.projectId === page.projectId && p.name.toLowerCase === page.name.toLowerCase && page.parentId.fold(
true: Rep[Boolean]
)(p.parentId.get === _)
)

}

0 comments on commit 30089ea

Please sign in to comment.