refactor(mount): enhance updateMount function with transaction handling and improved error management

This commit is contained in:
Mauricio Siu
2025-04-26 16:44:40 -06:00
parent 371c6317aa
commit 5611dcccfd
2 changed files with 23 additions and 21 deletions

View File

@@ -31,7 +31,6 @@ export const mountRouter = createTRPCRouter({
update: protectedProcedure
.input(apiUpdateMount)
.mutation(async ({ input }) => {
await updateMount(input.mountId, input);
return true;
return await updateMount(input.mountId, input);
}),
});