HomePage: switched to client-side rendering
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user