mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
feat: user sessions history & fix ts <any>
This commit is contained in:
1 parent
94ae2d7df4
commit
218a25daee
7 files changed
+95
-43
No files matched your search
@@ -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) => [
|
||||
|
||||
Reference in new issue
Block a user