File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -960,12 +960,15 @@ class EventsFactory extends Factory {
960960 }
961961
962962 if ( validObjectIds . length === 0 ) {
963- return { updatedCount : 0 , failedEventIds } ;
963+ return {
964+ updatedCount : 0 ,
965+ failedEventIds,
966+ } ;
964967 }
965968
966969 const collection = this . getCollection ( this . TYPES . EVENTS ) ;
967970 const found = await collection . find ( { _id : { $in : validObjectIds } } ) . toArray ( ) ;
968- const foundByIdStr = new Map ( found . map ( doc => [ doc . _id . toString ( ) , doc ] ) ) ;
971+ const foundByIdStr = new Map ( found . map ( doc => [ doc . _id . toString ( ) , doc ] ) ) ;
969972
970973 for ( const oid of validObjectIds ) {
971974 const idStr = oid . toString ( ) ;
@@ -1001,7 +1004,10 @@ class EventsFactory extends Factory {
10011004 }
10021005
10031006 if ( ops . length === 0 ) {
1004- return { updatedCount : 0 , failedEventIds } ;
1007+ return {
1008+ updatedCount : 0 ,
1009+ failedEventIds,
1010+ } ;
10051011 }
10061012
10071013 const bulkResult = await collection . bulkWrite ( ops , { ordered : false } ) ;
You can’t perform that action at this time.
0 commit comments