-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"the $sort key specification must be an object" #63
Labels
fixed
This issue is solved/fixed.
Comments
@Akalanka47000 Seems your Prepaginate feature update is causing this issue. Can you take a look. |
Akalanka47000
added a commit
to sliit-foss/mongoose-aggregate-paginate-v2
that referenced
this issue
Jul 23, 2024
Fixed @aravindnc, apologies for the trouble |
aravindnc
added a commit
that referenced
this issue
Jul 23, 2024
Fixes the sorting issue (#63) and failing test cases
@Akalanka47000 Awesome. I will publish updated package today. |
Thanks, both of you! Its working as expected with the latest version. I'm closing the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm running "mongoose: 8.5.1" and "mongoose-aggregate-paginate-v2: 1.0.7" without any problems.
When I upgrade to "mongoose-aggregate-paginate-v2: 1.1.1" I get the following error: "the $sort key specification must be an object".
My function looks like this:
I use it like this:
Somehow the sort-parameter is broken in the new version!
The text was updated successfully, but these errors were encountered: