fix an error with the all time date range for role stats.

This commit is contained in:
iamBadgers
2024-06-08 23:07:20 -07:00
parent 9c87485d4e
commit 68433b6836
3 changed files with 7 additions and 5 deletions

View File

@@ -183,11 +183,13 @@ async function loadData() {
monthId: dateSelect.value
})
gameStats.value = gameStatsResponse.data
console.log(gameStatsResponse.data)
const roleStatsResponse = await axios.post('/api/serverstats/rolestats', {
monthId: dateSelect.value
})
roleStats.value = roleStatsResponse.data
console.log(roleStatsResponse.data)
}
function buildDateItems() {
@@ -260,7 +262,6 @@ watch(chartSelect, async (newValue: ChartType, oldValue: ChartType) => {
})
onMounted(async () => {
console.log(dateItems)
if (!route.query.monthId) {
router.replace({ query: { monthId: -1 } })
} else {