Skip to content

Commit 99899a5

Browse files
committed
fix lint
1 parent d4bc87f commit 99899a5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/models/eventsFactory.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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 {

src/resolvers/project.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)