Skip to content

Commit ce24a61

Browse files
committed
fix lint
1 parent 5f4d987 commit ce24a61

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/models/eventsFactory.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ class EventsFactory extends Factory {
558558
* @returns {Release|null}
559559
*/
560560
async getEventRelease(eventId) {
561-
const eventOriginal = await this.getCollection(this.TYPES.EVENTS)
561+
let eventOriginal = await this.getCollection(this.TYPES.EVENTS)
562562
.findOne({
563563
_id: new ObjectID(eventId),
564564
});
@@ -650,8 +650,7 @@ class EventsFactory extends Factory {
650650
const collection = this.getCollection(this.TYPES.EVENTS);
651651
const query = { _id: new ObjectID(eventId) };
652652

653-
const event = await collection.findOne(query);
654-
653+
let event = await collection.findOne(query);
655654

656655
/**
657656
* If event is not found, try to find it as repetition
@@ -723,7 +722,7 @@ class EventsFactory extends Factory {
723722
const collection = this.getCollection(this.TYPES.EVENTS);
724723
const query = { _id: new ObjectID(eventId) };
725724

726-
const event = await collection.findOne(query);
725+
let event = await collection.findOne(query);
727726

728727
/**
729728
* If event is not found, try to find it as repetition

0 commit comments

Comments
 (0)