File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ const EVENTS_GROUP_HASH_INDEX_NAME = 'groupHashUnique';
1414const REPETITIONS_GROUP_HASH_INDEX_NAME = 'groupHash_hashed' ;
1515const REPETITIONS_USER_ID_INDEX_NAME = 'userId' ;
1616const EVENTS_TIMESTAMP_INDEX_NAME = 'timestamp' ;
17+ const GROUPING_TIMESTAMP_INDEX_NAME = 'groupingTimestamp' ;
18+ const GROUPING_TIMESTAMP_AND_GROUP_HASH_INDEX_NAME = 'groupingTimestampAndGroupHash' ;
1719const MAX_SEARCH_QUERY_LENGTH = 50 ;
1820
1921/**
@@ -106,14 +108,14 @@ module.exports = {
106108 await projectDailyEventsCollection . createIndex ( {
107109 groupingTimestamp : 1 ,
108110 } , {
109- name : 'groupingTimestamp' ,
111+ name : GROUPING_TIMESTAMP_INDEX_NAME ,
110112 } ) ;
111113
112114 await projectDailyEventsCollection . createIndex ( {
113115 groupingTimestamp : 1 ,
114116 groupHash : 1 ,
115117 } , {
116- name : 'groupingTimestampAndGroupHash' ,
118+ name : GROUPING_TIMESTAMP_AND_GROUP_HASH_INDEX_NAME ,
117119 } ) ;
118120
119121 await projectEventsCollection . createIndex ( {
You can’t perform that action at this time.
0 commit comments