From ec2133646f48b82d49faa9ba0936acff161a2d74 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Sun, 24 Apr 2022 11:47:02 +0100 Subject: [PATCH] fix: make User/imports return normal import documents --- .../router/api/v1/users/_userID/imports/router.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/server/src/server/router/api/v1/users/_userID/imports/router.ts b/server/src/server/router/api/v1/users/_userID/imports/router.ts index d086b9efa..31b68f617 100644 --- a/server/src/server/router/api/v1/users/_userID/imports/router.ts +++ b/server/src/server/router/api/v1/users/_userID/imports/router.ts @@ -9,12 +9,6 @@ const router: Router = Router({ mergeParams: true }); * Return minimal information about up to 500 of this user's most recent imports. * To control where that 500 starts from, pass the timeFinished param. * - * This endpoint only returns importID, game, timeStarted/finished, userIntent - * and import method. - * - * The reason this endpoint omits fields is to keep the size of the return fairly - * low, and reduce bandwidth on the server. - * * This endpoint is intended to be used by developers to triage certain bugs. * * @param timeFinished - Where to start counting this users 500 imports from, this @@ -44,14 +38,6 @@ router.get("/", prValidate({ timeFinished: "*string" }), async (req, res) => { timeFinished: { $lt: timeFinished }, }, { - projection: { - importID: 1, - importType: 1, - game: 1, - userIntent: 1, - timeStarted: 1, - timeFinished: 1, - }, limit: 500, sort: { timeFinished: -1 }, }