Skip to content

Commit 1216b80

Browse files
authored
fix: contact update mutation (#265)
1 parent 42849cd commit 1216b80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/web/src/server/api/routers/contacts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export const contactsRouter = createTRPCRouter({
5151
})
5252
)
5353
.mutation(async ({ ctx: { contactBook }, input }) => {
54-
return contactBookService.updateContactBook(contactBook.id, input);
54+
const { contactBookId, ...data } = input;
55+
return contactBookService.updateContactBook(contactBook.id, data);
5556
}),
5657

5758
deleteContactBook: contactBookProcedure

0 commit comments

Comments
 (0)