From 856e5403249a8916398e73c34685011c3a8d55d8 Mon Sep 17 00:00:00 2001 From: KishinZW Date: Sun, 28 Jul 2024 20:27:18 +0800 Subject: [PATCH] fixed edit method in program manager --- server/trpc/routers/program.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/trpc/routers/program.ts b/server/trpc/routers/program.ts index 8c6ff9b..dceb273 100644 --- a/server/trpc/routers/program.ts +++ b/server/trpc/routers/program.ts @@ -26,7 +26,7 @@ export const programRouter = router({ .use(requireRoles(['admin'])) .input(z.object({ id: programIdZod, new_name: nameZod })) .mutation(async ({ ctx, input }) => { - return await ctx.deviceController.edit(input.id, input.new_name); + return await ctx.programController.edit(input.id, input.new_name); }), list: protectedProcedure