fix: contact update mutation (#265)

This commit is contained in:
Vamsi Sai
2025-10-03 00:02:09 +05:30
committed by GitHub
parent 42849cd9f9
commit 1216b8085e
+2 -1
View File
@@ -51,7 +51,8 @@ export const contactsRouter = createTRPCRouter({
}) })
) )
.mutation(async ({ ctx: { contactBook }, input }) => { .mutation(async ({ ctx: { contactBook }, input }) => {
return contactBookService.updateContactBook(contactBook.id, input); const { contactBookId, ...data } = input;
return contactBookService.updateContactBook(contactBook.id, data);
}), }),
deleteContactBook: contactBookProcedure deleteContactBook: contactBookProcedure