Skip to content

Commit

Permalink
fixed edit method in program manager
Browse files Browse the repository at this point in the history
  • Loading branch information
KishinZW committed Jul 28, 2024
1 parent 9f371a9 commit 856e540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/trpc/routers/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 856e540

Please sign in to comment.