File tree 1 file changed +2
-2
lines changed
Sources/ParseSwift/Protocols 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ public protocol ParseQueryScorable {
22
22
}
23
23
24
24
// MARK: ParseQueryScorable
25
- extension Query {
25
+ extension Query where T : ParseObject & ParseQueryScorable {
26
26
/**
27
27
Method to sort the full text search by text score.
28
28
- parameter value: String or Object of index that should be used when executing query.
29
29
- note: Your `ParseObject` should conform to `ParseQueryScorable` to retrieve
30
30
the weight/rank via the "score" property of your `ParseObject`.
31
31
*/
32
- public func sortByTextScore( ) -> Query < T > where T : ParseObject & ParseQueryScorable {
32
+ public func sortByTextScore( ) -> Query < T > {
33
33
var mutableQuery = self
34
34
let ascendingScore = Order . ascending ( QueryConstraint . Comparator. score. rawValue)
35
35
if mutableQuery. order != nil {
You can’t perform that action at this time.
0 commit comments