Skip to content

Commit e444ca8

Browse files
committed
Can't sort a count
1 parent aa072da commit e444ca8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Adapters/Storage/Mongo/MongoStorageAdapter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ export class MongoStorageAdapter {
206206
}
207207

208208
// Executs a count.
209-
count(className, query, { skip, sort }) {
209+
count(className, query, { skip }) {
210210
return this.adaptiveCollection(className)
211-
.then(collection => collection.count(query, { skip, sort }));
211+
.then(collection => collection.count(query, { skip }));
212212
}
213213

214214
get transform() {

0 commit comments

Comments
 (0)