Skip to content

Commit

Permalink
馃敤 Querying fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benlmyers committed Mar 30, 2023
1 parent d725d62 commit 348679f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/EasyFirebase/Extensions/KeyPath.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ extension KeyPath {
// MARK: - Internal Properties

internal var string: String {
NSExpression(forKeyPath: self).keyPath
return NSExpression(forKeyPath: self).keyPath
}
}
6 changes: 3 additions & 3 deletions Sources/EasyFirebase/Services/Firestore/Querying.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extension EasyFirestore {
*/
public struct Querying {

public typealias ConditionBlock<T, V> = (KeyPath<T, V>, Condition<T, V>.Comparison, V)
public typealias ConditionBlock<T, V> = (KeyPath<T, V>, Condition<T, V>.Comparison, Any)

// MARK: - Public Static Methods

Expand Down Expand Up @@ -61,7 +61,7 @@ extension EasyFirestore {
*/
public static func `where`<T, V>(_ path: KeyPath<T, V>,
_ comparison: Condition<T, V>.Comparison,
_ value: V,
_ value: Any,
order: Order? = nil,
limit: Int? = nil,
completion: @escaping ([T]) -> Void
Expand Down Expand Up @@ -168,7 +168,7 @@ extension EasyFirestore {
/// The comparison used to filter a query.
public var comparison: Comparison
/// The value to check.
public var value: V
public var value: Any

// MARK: - Internal Methods

Expand Down

0 comments on commit 348679f

Please sign in to comment.