mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-05 13:28:08 +03:00
Rename GetRecentlyAchievedGoals to GetGoalSummary
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user