Skip to content

Commit b1db97c

Browse files
committed
nits
1 parent 1a740e8 commit b1db97c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spec/CloudCode.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ describe('afterFind hooks', () => {
14711471
});
14721472
});
14731473

1474-
it('should report count if passed', (done) => {
1474+
it('should set count to true on beforeFind hooks if query is count', (done) => {
14751475
const hook = {
14761476
method: function(req) {
14771477
expect(req.count).toBe(true);
@@ -1487,7 +1487,7 @@ describe('afterFind hooks', () => {
14871487
});
14881488
});
14891489

1490-
it('should report count if passed', (done) => {
1490+
it('should set count to false on beforeFind hooks if query is not count', (done) => {
14911491
const hook = {
14921492
method: function(req) {
14931493
expect(req.count).toBe(false);

src/triggers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ export function getRequestObject(triggerType, auth, parseObject, originalParseOb
158158
export function getRequestQueryObject(triggerType, auth, query, count, config) {
159159
var request = {
160160
triggerName: triggerType,
161-
query: query,
161+
query,
162162
master: false,
163-
count: count,
163+
count,
164164
log: config.loggerController
165165
};
166166

0 commit comments

Comments
 (0)