Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
dplewis committed Oct 26, 2018
1 parent 867e161 commit 8e5e3dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#### Improvements:
* Fixes issue that would prevent users with large number of roles to resolve all of them [@Moumouls]() (#5131, #5132)

* Fixes distinct query on special fields ([#5144](https://github.com/parse-community/parse-server/pull/5144))

### 3.1.0
[Full Changelog](https://github.com/parse-community/parse-server/compare/3.0.0...3.1.0)
Expand Down
11 changes: 8 additions & 3 deletions spec/ParseQuery.Aggregate.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1116,11 +1116,16 @@ describe('Parse.Query Aggregate testing', () => {
});

it('distinct updatedAt', async () => {
const object1 = new TestObject({ updatedAt_test: true });
await object1.save();
const object2 = new TestObject();
await object2.save();
object2.set('updatedAt_test', true);
await object2.save();
const query = new Parse.Query(TestObject);
query.equalTo('updatedAt_test', true);
const results = await query.distinct('updatedAt');

// loadTestData() all have the same updatedAt
expect(results.length).toBe(1);
expect(results.length).toBe(2);
});

it('distinct null field', done => {
Expand Down

0 comments on commit 8e5e3dd

Please sign in to comment.