From a45fb1c2e786dac7e15badd87e0f6a4f08285f24 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Sat, 16 Jul 2022 01:52:53 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=9B=20Added=20getBundlesForIssue=20end?= =?UTF-8?q?point=20scaffold?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/library.service.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/services/library.service.ts b/services/library.service.ts index cfd7321..a7b6325 100644 --- a/services/library.service.ts +++ b/services/library.service.ts @@ -32,7 +32,7 @@ SOFTWARE. */ "use strict"; -import { isNil } from "lodash"; +import { isNil, isUndefined } from "lodash"; import { Context, Service, @@ -510,6 +510,17 @@ export default class ImportService extends Service { }); }, }, + groupIssuesByBundles: { + rest: "GET /groupIssuesByBundles", + params: {}, + handler: async (ctx: Context<{}>) => { + // params: array of bundle IDs + // query mongo for + if(!isNil(ctx.params)) { + console.log(Object.values(ctx.params)); + } + } + }, libraryStatistics: { rest: "GET /libraryStatistics", params: {},