We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42849cd commit 1216b80Copy full SHA for 1216b80
apps/web/src/server/api/routers/contacts.ts
@@ -51,7 +51,8 @@ export const contactsRouter = createTRPCRouter({
51
})
52
)
53
.mutation(async ({ ctx: { contactBook }, input }) => {
54
- return contactBookService.updateContactBook(contactBook.id, input);
+ const { contactBookId, ...data } = input;
55
+ return contactBookService.updateContactBook(contactBook.id, data);
56
}),
57
58
deleteContactBook: contactBookProcedure
0 commit comments