Skip to content
This repository has been archived by the owner on Aug 10, 2018. It is now read-only.

bug1010442 - Implement before query API for past events #84

Merged
merged 1 commit into from
Jul 24, 2014

Conversation

alicoding
Copy link
Collaborator

if (before) {
// Before query needs to be in DESC order
order = req.query.order || 'beginDate';
order = order + ' DESC'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the order by query needs to contain two arrays. So this would need to be something like [[ 'beginDate', 'DESC' ]]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be order = [[ order, ' DESC' ]] ?

@alicoding alicoding merged commit 5790866 into mozilla:master Jul 24, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants