File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -392,17 +392,16 @@ class EventsFactory extends Factory {
392392 /**
393393 * Returns Event repetitions
394394 *
395- * @param {string|ObjectID } eventId - Event's id
395+ * @param {string|ObjectID } groupHash - Event's group hash
396396 * @param {Number } limit - count limitations
397- * @param {Number } skip - selection offset
397+ * @param {Number } cursor - selection offset
398398 *
399399 * @return {EventRepetitionSchema[] }
400400 *
401401 * @todo move to Repetitions(?) model
402402 */
403403 async getEventRepetitionsByGroupHash ( groupHash , limit = 10 , cursor = undefined ) {
404404 limit = this . validateLimit ( limit ) ;
405- skip = this . validateSkip ( skip ) ;
406405
407406 cursor = cursor ? new ObjectID ( cursor ) : undefined ;
408407
@@ -494,7 +493,7 @@ class EventsFactory extends Factory {
494493 const event = await this . findById ( repetitionId ) ;
495494
496495 if ( ! event ) {
497- return null ;
496+ return null ;
498497 }
499498
500499 return {
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ module.exports = {
290290 async event ( project , { id : repetitionId } ) {
291291 const factory = new EventsFactory ( project . _id ) ;
292292 const repetition = await factory . getEventRepetition ( repetitionId ) ;
293-
293+
294294 if ( ! repetition ) {
295295 return null ;
296296 }
You can’t perform that action at this time.
0 commit comments