fix: analytics type errors

This commit is contained in:
Justin Lin committed 2025-04-26 13:10:48 +08:00
1 parent f7e2b00358
commit 253564376d
26 files changed
+53 -322

No files matched your search

+10 -4
View File
@@ -1,8 +1,14 @@
/* eslint-disable object-shorthand */
/* eslint-disable func-names */
import { UserProfile } from '@models'
import { UserProfile } from '../../../models'
export function questList() {
export interface QuestProgress {
_id: string
started: number
completed: number
completedRate: number
failed: number
}
export function questList(): Promise<QuestProgress[]> {
return UserProfile.aggregate([
{
$project: {