Skip to content

Commit 0afec08

Browse files
algolia-botmillotp
andcommitted
fix(specs): allow one sided rule validity (generated)
algolia/api-clients-automation#5060 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 26c3142 commit 0afec08

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/scala/algoliasearch/recommend/TimeRange.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ package algoliasearch.recommend
3737
* When the rule should stop to be active, in Unix epoch time.
3838
*/
3939
case class TimeRange(
40-
from: Long,
41-
until: Long
40+
from: Option[Long] = scala.None,
41+
until: Option[Long] = scala.None
4242
)

src/main/scala/algoliasearch/search/TimeRange.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ package algoliasearch.search
4141
* When the rule should stop to be active, in Unix epoch time.
4242
*/
4343
case class TimeRange(
44-
from: Long,
45-
until: Long
44+
from: Option[Long] = scala.None,
45+
until: Option[Long] = scala.None
4646
)

0 commit comments

Comments
 (0)