File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments