Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/rule-manager/app/db/DbRuleDraft.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import scala.util.{Failure, Success, Try}
import utils.StringHelpers
import service.RuleManager.RuleType
import java.time.temporal.ChronoUnit
import com.gu.typerighter.lib.Loggable

case class DbRuleDraft(
id: Option[Int],
Expand Down Expand Up @@ -69,7 +70,7 @@ case class DbRuleDraft(
}
}

object DbRuleDraft extends SQLSyntaxSupport[DbRuleDraft] {
object DbRuleDraft extends SQLSyntaxSupport[DbRuleDraft] with Loggable {
implicit val format: Format[DbRuleDraft] = Json.format[DbRuleDraft]

override val tableName = "rules_draft"
Expand Down Expand Up @@ -340,6 +341,7 @@ object DbRuleDraft extends SQLSyntaxSupport[DbRuleDraft] {
page_count
$orderByClause
"""
log.info(s"Executing search with query: ${searchStmt.statement}")

val data =
searchStmt
Expand Down