Skip to content

Commit d5689fa

Browse files
committed
add endpointgroupreports cleanup
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
1 parent b171929 commit d5689fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/bg_services/usage_aggregator.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ async function background_worker() {
112112
const till = moment().subtract(8, 'weeks').valueOf();
113113
dbg.log0('Deleting reports older than', new Date(till));
114114
await EndpointStatsStore.instance.clean_bandwidth_reports({ till });
115+
116+
// Clean endpoint group reports here as well?
117+
await EndpointStatsStore.instance.clean_endpoint_group_reports({ till });
115118
}
116119

117120
function _accumulate_bandwidth(acc, update) {

0 commit comments

Comments
 (0)