From 7f39387d65df60925704d0766b903584dd61e357 Mon Sep 17 00:00:00 2001 From: Elsa Date: Fri, 9 Feb 2024 14:20:21 -0500 Subject: [PATCH] Add version to elements param --- app/src/server/trpc/routers/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/server/trpc/routers/service.ts b/app/src/server/trpc/routers/service.ts index 353b748..6503f46 100644 --- a/app/src/server/trpc/routers/service.ts +++ b/app/src/server/trpc/routers/service.ts @@ -34,7 +34,7 @@ export const serviceRouter = router({ .input(z.object({ resourceType: z.enum(['Measure', 'Library']) })) .query(async ({ input }) => { const artifactBundle = await fetch( - `${process.env.MRS_SERVER}/${input.resourceType}?_elements=id,name,extension` + `${process.env.MRS_SERVER}/${input.resourceType}?_elements=id,name,extension,version` ).then(resArtifacts => resArtifacts.json() as Promise>); const artifactList = artifactBundle.entry?.map(entry => ({ label: