From 8f543fc8d6e9521ab90bfc5b222b2bd20dd28dfe Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Fri, 1 Apr 2022 14:37:25 +0100 Subject: [PATCH] Rename GetRecentlyAchievedGoals to GetGoalSummary --- server/src/server/router/api/v1/users/_userID/router.ts | 4 ++-- server/src/utils/queries/summary.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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({