fix: contact update mutation (#265)
This commit is contained in:
1 parent
42849cd9f9
commit
1216b8085e
1 file changed
+2
-1
@@ -51,7 +51,8 @@ export const contactsRouter = createTRPCRouter({
|
||||
})
|
||||
)
|
||||
.mutation(async ({ ctx: { contactBook }, input }) => {
|
||||
return contactBookService.updateContactBook(contactBook.id, input);
|
||||
const { contactBookId, ...data } = input;
|
||||
return contactBookService.updateContactBook(contactBook.id, data);
|
||||
}),
|
||||
|
||||
deleteContactBook: contactBookProcedure
|
||||
|
||||
Reference in new issue
Block a user