HomePage: switched to client-side rendering

This commit is contained in:
2024-02-08 13:23:23 +01:00
parent 4633b36474
commit 8703decb91
3 changed files with 74 additions and 27 deletions

View File

@@ -70,7 +70,7 @@ export const fetchAvailableYears = withUser(async (user:AuthenticatedUser) => {
const dbClient = await getDbClient();
// query mnogodb for all `yearMonth` values
const years = await dbClient.collection<BillingLocation>("lokacije")
const years:number[] = await dbClient.collection<BillingLocation>("lokacije")
.distinct("yearMonth.year", { userId })
// sort the years in descending order