@@ -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 ( {
0 commit comments