mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
fix: analytics type errors
This commit is contained in:
1 parent
f7e2b00358
commit
253564376d
26 files changed
+53
-322
No files matched your search
@@ -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: {
|
||||
|
||||
Reference in new issue
Block a user