Skip to content

Commit 8e5e3dd

Browse files
committed
update changelog
1 parent 867e161 commit 8e5e3dd

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#### Improvements:
77
* Fixes issue that would prevent users with large number of roles to resolve all of them [@Moumouls]() (#5131, #5132)
8-
8+
* Fixes distinct query on special fields ([#5144](https://github.com/parse-community/parse-server/pull/5144))
99

1010
### 3.1.0
1111
[Full Changelog](https://github.com/parse-community/parse-server/compare/3.0.0...3.1.0)

spec/ParseQuery.Aggregate.spec.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,11 +1116,16 @@ describe('Parse.Query Aggregate testing', () => {
11161116
});
11171117

11181118
it('distinct updatedAt', async () => {
1119+
const object1 = new TestObject({ updatedAt_test: true });
1120+
await object1.save();
1121+
const object2 = new TestObject();
1122+
await object2.save();
1123+
object2.set('updatedAt_test', true);
1124+
await object2.save();
11191125
const query = new Parse.Query(TestObject);
1126+
query.equalTo('updatedAt_test', true);
11201127
const results = await query.distinct('updatedAt');
1121-
1122-
// loadTestData() all have the same updatedAt
1123-
expect(results.length).toBe(1);
1128+
expect(results.length).toBe(2);
11241129
});
11251130

11261131
it('distinct null field', done => {

0 commit comments

Comments
 (0)