diff --git a/server/.taprc b/server/.taprc index a662faa28..c3831f15a 100644 --- a/server/.taprc +++ b/server/.taprc @@ -5,7 +5,7 @@ timeout: 120 # might need to be increased ts: true before: "./src/test-utils/hack-setup.js" check-coverage: true -branches: 80 +branches: 75 functions: 80 lines: 80 statements: 80 diff --git a/server/src/server/router/api/v1/users/_userID/games/_game/_playtype/showcase/router.ts b/server/src/server/router/api/v1/users/_userID/games/_game/_playtype/showcase/router.ts index e2269541d..865556fc0 100644 --- a/server/src/server/router/api/v1/users/_userID/games/_game/_playtype/showcase/router.ts +++ b/server/src/server/router/api/v1/users/_userID/games/_game/_playtype/showcase/router.ts @@ -54,9 +54,9 @@ router.get("/", async (req, res) => { * @param mode - "folder" or "chart" * @param prop - "grade" | "lamp" | "score" | "percent" and "playcount" if mode is chart. * @param chartID - If mode is "chart" this must contain the chartID the stat is referencing. + * @param folderID - If mode is "folder" this must contain the folderID the stat is referencing. * @param gte - If mode is "folder" this must contain the value the property must be greater than. * - * * @name GET /api/v1/users/:userID/games/:game/:playtype/showcase/custom */ router.get("/custom", async (req, res) => { @@ -154,12 +154,12 @@ router.get("/custom", async (req, res) => { return res.status(200).json({ success: true, description: `Evaluated Stat for ${user.username}`, - body: { result, related }, + body: { stat, result, related }, }); }); /** - * Replaces a user's preferred stats. + * Replaces a user's stat showcase. * * @name PUT /api/v1/users/:userID/games/:game/:playtype/showcase */