Skip to content

Commit 24017f4

Browse files
committed
chore(): lint fix
1 parent f3d87ad commit 24017f4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/models/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* @property {String} catcherType - type of an event
4444
* @property {EventPayload} payload - event's payload
4545
* @property {Number} timestamp - event's Unix timestamp
46-
* @property {Number} usersAffected - number of users that were affected by the event
46+
* @property {Number} usersAffected - number of users that were affected by the event
4747
* @property {User[]} visitedBy - array of users who visited this event
4848
*/
4949

src/models/eventsFactory.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const { composeEventPayloadByRepetition } = require('../utils/merge');
3434
* @property {Number} count - number of events this day
3535
* @property {String} lastRepetitionId - id of the last repetition this day
3636
* @property {Number} lastRepetitionTime - UNIX timestamp that represent time of the last repetition this day
37-
* @property {Event} event - one certain event that represents all of the repetitions this day
37+
* @property {Event} event - one certain event that represents all of the repetitions this day
3838
*/
3939

4040
/**
@@ -465,12 +465,12 @@ class EventsFactory extends Factory {
465465
/**
466466
* Get portion based on cursor if cursor is not null
467467
*/
468-
const query = cursor ? {
468+
const query = cursor ? {
469469
groupHash: eventOriginal.groupHash,
470470
_id: { $lte: cursor },
471-
} : {
471+
} : {
472472
groupHash: eventOriginal.groupHash,
473-
}
473+
};
474474

475475
/**
476476
* Collect repetitions
@@ -523,7 +523,7 @@ class EventsFactory extends Factory {
523523
* Returns certain repetition of the original event
524524
*
525525
* @param {String} repetitionId - id of Repetition to find
526-
* @param {String} originalEventId - id of the original event
526+
* @param {String} originalEventId - id of the original event
527527
* @return {Event|null}
528528
*/
529529
async getEventRepetition(repetitionId, originalEventId) {
@@ -536,11 +536,11 @@ class EventsFactory extends Factory {
536536
_id: ObjectID(originalEventId),
537537
});
538538

539-
return originalEvent ? originalEvent : null;
539+
return originalEvent || null;
540540
}
541541

542542
/**
543-
* Otherwise we need to get original event and repetition and merge them
543+
* Otherwise we need to get original event and repetition and merge them
544544
*/
545545
const repetition = await this.getCollection(this.TYPES.REPETITIONS)
546546
.findOne({

src/resolvers/event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = {
2525
* @param {String} eventId - id of the event got from the partent graph node (event)
2626
* @param {String} projectId - id of the project got from the parent node (event)
2727
* @param {Number} limit - argument of the query, maximal count of the repetitions in one portion
28-
* @param {Number|null} cursor - pointer to the next portion of repetition, could be null if we want to get first portion
28+
* @param {Number|null} cursor - pointer to the next portion of repetition, could be null if we want to get first portion
2929
*
3030
* @return {RepetitionsPortion}
3131
*/

0 commit comments

Comments
 (0)