File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ api.dashboard.getData = payload => {
29
29
}
30
30
api . dashboard . getTopGroups = payload => {
31
31
const timespan = payload . timespan || 30
32
- return axios . get ( `/api/v1/tickets/count/topgroups/${ timespan } ` ) . then ( res => {
32
+ return axios . get ( `/api/v1/tickets/count/topgroups/${ timespan } /5 ` ) . then ( res => {
33
33
return res . data
34
34
} )
35
35
}
Original file line number Diff line number Diff line change @@ -1703,17 +1703,17 @@ apiTickets.getTicketStatsForUser = function (req, res) {
1703
1703
*
1704
1704
*/
1705
1705
apiTickets . getTagCount = function ( req , res ) {
1706
- var cache = global . cache
1707
- var timespan = req . params . timespan
1706
+ const cache = global . cache
1707
+ let timespan = req . params . timespan
1708
1708
if ( _ . isUndefined ( timespan ) || _ . isNaN ( timespan ) ) timespan = 0
1709
1709
1710
1710
if ( _ . isUndefined ( cache ) ) {
1711
1711
return res . status ( 400 ) . send ( 'Tag stats are still loading...' )
1712
1712
}
1713
1713
1714
- var tags = cache . get ( 'tags:' + timespan + ':usage' )
1714
+ const tags = cache . get ( 'tags:' + timespan + ':usage' )
1715
1715
1716
- res . json ( { success : true , tags : tags } )
1716
+ res . json ( { success : true , tags } )
1717
1717
}
1718
1718
1719
1719
/**
You can’t perform that action at this time.
0 commit comments