Skip to content

Commit a65dcd4

Browse files
committed
imp(): rename
1 parent e478c93 commit a65dcd4

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

src/models/eventsFactory.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ const { composeEventPayloadByRepetition } = require('../utils/merge');
3939

4040
/**
4141
* @typedef {Object} DailyEventsCursor
42-
* @property {Number} groupingTimestampBound - boundary value of groupingTimestamp field of the last event in the portion
43-
* @property {Number} sortValueBound - boundary value of the field by which events are sorted (count/affectedUsers/lastRepetitionTime) of the last event in the portion
44-
* @property {String} idBound - boundary value of _id field of the last event in the portion
42+
* @property {Number} groupingTimestampBoundary - boundary value of groupingTimestamp field of the last event in the portion
43+
* @property {Number} sortValueBoundary - boundary value of the field by which events are sorted (count/affectedUsers/lastRepetitionTime) of the last event in the portion
44+
* @property {String} idBoundary - boundary value of _id field of the last event in the portion
4545
*/
4646

4747
/**
@@ -236,16 +236,16 @@ class EventsFactory extends Factory {
236236
* If groupingTimestamp is less than the cursors one
237237
* - daily events of the next day
238238
*/
239-
groupingTimestamp: { $lt: paginationCursor.groupingTimestampBound },
239+
groupingTimestamp: { $lt: paginationCursor.groupingTimestampBoundary },
240240
},
241241
{
242242
/**
243243
* If groupingTimestamp equals to the cursor one, but [sort] is less than the cursors one
244244
* - daily events of the same day, but with less count/affectedUsers/lastRepetitionTime
245245
*/
246246
$and: [
247-
{ groupingTimestamp: paginationCursor.groupingTimestampBound },
248-
{ [sort]: { $lt: paginationCursor.sortValueBound } },
247+
{ groupingTimestamp: paginationCursor.groupingTimestampBoundary },
248+
{ [sort]: { $lt: paginationCursor.sortValueBoundary } },
249249
],
250250
},
251251
{
@@ -254,9 +254,9 @@ class EventsFactory extends Factory {
254254
* - daily events of the same day with the same count/affectedUsers/lastRepetitionTime, but that were created earlier
255255
*/
256256
$and: [
257-
{ groupingTimestamp: paginationCursor.groupingTimestampBound },
258-
{ [sort]: paginationCursor.sortValueBound },
259-
{ _id: { $lte: new ObjectID(paginationCursor.idBound) } },
257+
{ groupingTimestamp: paginationCursor.groupingTimestampBoundary },
258+
{ [sort]: paginationCursor.sortValueBoundary },
259+
{ _id: { $lte: new ObjectID(paginationCursor.idBoundary) } },
260260
],
261261
},
262262
],
@@ -363,9 +363,9 @@ class EventsFactory extends Factory {
363363
const nextCursorEvent = result.pop();
364364

365365
nextCursor = {
366-
groupingTimestampBound: nextCursorEvent.groupingTimestamp,
367-
sortValueBound: nextCursorEvent[sort],
368-
idBound: nextCursorEvent._id.toString(),
366+
groupingTimestampBoundary: nextCursorEvent.groupingTimestamp,
367+
sortValueBoundary: nextCursorEvent[sort],
368+
idBoundary: nextCursorEvent._id.toString(),
369369
};
370370
}
371371

src/typeDefs/project.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,23 @@ type DailyEventsCursor {
5959
"""
6060
Grouping timestamp of the first event in the next portion
6161
"""
62-
groupingTimestampBound: Int!
62+
groupingTimestampBoundary: Int!
6363
6464
"""
6565
Sort key value of the first event in the next portion
6666
"""
67-
sortValueBound: Int!
67+
sortValueBoundary: Int!
6868
6969
"""
7070
ID of the first event of in the next portion
7171
"""
72-
idBound: ID!
72+
idBoundary: ID!
7373
}
7474
7575
input DailyEventsCursorInput {
76-
groupingTimestampBound: Int!
77-
sortValueBound: Int!
78-
idBound: ID!
76+
groupingTimestampBoundary: Int!
77+
sortValueBoundary: Int!
78+
idBoundary: ID!
7979
}
8080
8181
"""

0 commit comments

Comments
 (0)