File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ const { GitHubService } = require('../integrations/github/service');
1414const EVENTS_GROUP_HASH_INDEX_NAME = 'groupHashUnique' ;
1515const REPETITIONS_GROUP_HASH_INDEX_NAME = 'groupHash_hashed' ;
1616const REPETITIONS_USER_ID_INDEX_NAME = 'userId' ;
17+ const REPETITIONS_TIMESTAMP_INDEX_NAME = 'timestamp' ;
1718const EVENTS_TIMESTAMP_INDEX_NAME = 'timestamp' ;
1819const EVENTS_PAYLOAD_RELEASE_INDEX_NAME = 'payloadRelease' ;
1920const GROUPING_TIMESTAMP_INDEX_NAME = 'groupingTimestamp' ;
@@ -213,6 +214,13 @@ module.exports = {
213214 sparse : true ,
214215 } ) ;
215216
217+ await projectRepetitionsEventsCollection . createIndex ( {
218+ timestamp : 1 ,
219+ } , {
220+ name : REPETITIONS_TIMESTAMP_INDEX_NAME ,
221+ sparse : true ,
222+ } ) ;
223+
216224 await projectEventsCollection . createIndex ( {
217225 timestamp : 1 ,
218226 } , {
You can’t perform that action at this time.
0 commit comments