feat: user sessions history & fix ts <any>

This commit is contained in:
chreamy committed 2024-03-05 01:27:53 -06:00
1 parent 94ae2d7df4
commit 218a25daee
7 files changed
+95 -43

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
import { userCount } from '../models/users.js'
import { questList } from '../models/quests.ts'
import { Request, Response } from 'express'
// eslint-disable-next-line import/prefer-default-export
export async function homeController(req: any, res: any) {
export async function homeController(req: Request, res: Response) {
const quests = await questList()
const [totalQuests, totalCompleted] = quests.reduce(
([total, completed], quest) => [