File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
modules/module-mongodb-storage/src/storage Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,13 @@ export class MongoReportStorage implements storage.ReportStorageFactory {
8383 }
8484
8585 async scrapeSdkData ( data : event_types . ScrapeSdkDataRequest ) : Promise < event_types . ListCurrentConnectionsResponse > {
86+ const timespanFilter = timeSpan ( data . scrape_time ) ;
87+ console . log ( timespanFilter ) ;
8688 const result = await this . db . sdk_report_events
8789 . aggregate ( [
8890 {
8991 $match : {
90- connect_at : timeSpan ( data . scrape_time )
92+ connect_at : timespanFilter
9193 }
9294 } ,
9395 {
@@ -132,7 +134,6 @@ export class MongoReportStorage implements storage.ReportStorageFactory {
132134 }
133135 ] )
134136 . toArray ( ) ;
135- console . log ( result [ 0 ] ) ;
136137 return result [ 0 ] as event_types . ListCurrentConnectionsResponse ;
137138 }
138139
You can’t perform that action at this time.
0 commit comments