diff --git a/server/src/server/router/api/v1/users/_userID/router.ts b/server/src/server/router/api/v1/users/_userID/router.ts index b68e3be01..26a96f393 100644 --- a/server/src/server/router/api/v1/users/_userID/router.ts +++ b/server/src/server/router/api/v1/users/_userID/router.ts @@ -9,7 +9,7 @@ import { ImportTypes, integer, UserGameStats } from "tachi-common"; import { DeleteUndefinedProps, StripUrl } from "utils/misc"; import { optNullFluffStrField } from "utils/prudence"; import { - GetRecentlyAchievedGoals, + GetGoalSummary, GetRecentlyViewedFoldersAnyGPT, GetRecentPlaycount, GetRecentSessions, @@ -230,7 +230,7 @@ router.get("/recent-summary", async (req, res) => { GetRecentPlaycount(user.id), GetRecentSessions(user.id), GetRecentlyViewedFoldersAnyGPT(user.id), - GetRecentlyAchievedGoals(user.id), + GetGoalSummary(user.id), ]); return res.status(200).json({ diff --git a/server/src/utils/queries/summary.ts b/server/src/utils/queries/summary.ts index 57ee60754..4b9dcb62b 100644 --- a/server/src/utils/queries/summary.ts +++ b/server/src/utils/queries/summary.ts @@ -49,7 +49,7 @@ export async function GetRecentlyViewedFoldersAnyGPT(userID: integer) { return { folders, stats }; } -export async function GetRecentlyAchievedGoals(userID: integer) { +export async function GetGoalSummary(userID: integer) { const time = GetTimeXHoursAgo(REASONABLE_HOURS_AGO); const achievedGoals = await db["goal-subs"].find({