Skip to content

Commit

Permalink
fix(specs): update time range number types [skip-bc] (generated)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
3 people committed Oct 24, 2024
1 parent 178f3b5 commit 96842b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Sources/Recommend/Models/RecommendTimeRange.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import Foundation

public struct RecommendTimeRange: Codable, JSONEncodable {
/// When the rule should start to be active, in Unix epoch time.
public var from: Int
public var from: Int64
/// When the rule should stop to be active, in Unix epoch time.
public var until: Int
public var until: Int64

public init(from: Int, until: Int) {
public init(from: Int64, until: Int64) {
self.from = from
self.until = until
}
Expand Down
6 changes: 3 additions & 3 deletions Sources/Search/Models/SearchTimeRange.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import Foundation

public struct SearchTimeRange: Codable, JSONEncodable {
/// When the rule should start to be active, in Unix epoch time.
public var from: Int
public var from: Int64
/// When the rule should stop to be active, in Unix epoch time.
public var until: Int
public var until: Int64

public init(from: Int, until: Int) {
public init(from: Int64, until: Int64) {
self.from = from
self.until = until
}
Expand Down

0 comments on commit 96842b1

Please sign in to comment.