Skip to content

Commit 96842b1

Browse files
algolia-botFluf22millotp
committed
fix(specs): update time range number types [skip-bc] (generated)
algolia/api-clients-automation#4023 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 178f3b5 commit 96842b1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Sources/Recommend/Models/RecommendTimeRange.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import Foundation
88

99
public struct RecommendTimeRange: Codable, JSONEncodable {
1010
/// When the rule should start to be active, in Unix epoch time.
11-
public var from: Int
11+
public var from: Int64
1212
/// When the rule should stop to be active, in Unix epoch time.
13-
public var until: Int
13+
public var until: Int64
1414

15-
public init(from: Int, until: Int) {
15+
public init(from: Int64, until: Int64) {
1616
self.from = from
1717
self.until = until
1818
}

Sources/Search/Models/SearchTimeRange.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import Foundation
88

99
public struct SearchTimeRange: Codable, JSONEncodable {
1010
/// When the rule should start to be active, in Unix epoch time.
11-
public var from: Int
11+
public var from: Int64
1212
/// When the rule should stop to be active, in Unix epoch time.
13-
public var until: Int
13+
public var until: Int64
1414

15-
public init(from: Int, until: Int) {
15+
public init(from: Int64, until: Int64) {
1616
self.from = from
1717
self.until = until
1818
}

0 commit comments

Comments
 (0)