Rename GetRecentlyAchievedGoals to GetGoalSummary

This commit is contained in:
zkldi
2022-04-01 14:37:25 +01:00
parent 67613bafaa
commit 8f543fc8d6
2 changed files with 3 additions and 3 deletions
@@ -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({
+1 -1
View File
@@ -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({