From f14fd578778c5e7c1894037a7d71e184a34b65fb Mon Sep 17 00:00:00 2001 From: Will Franklin Date: Thu, 21 Nov 2024 16:22:37 +0100 Subject: [PATCH] Fix update contact validation --- apps/backend/src/api/controllers/ContactController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/api/controllers/ContactController.ts b/apps/backend/src/api/controllers/ContactController.ts index ec09d6757..3f79b99a2 100644 --- a/apps/backend/src/api/controllers/ContactController.ts +++ b/apps/backend/src/api/controllers/ContactController.ts @@ -209,7 +209,7 @@ export class ContactController { async updateContact( @CurrentAuth({ required: true }) auth: AuthInfo, @TargetUser() target: Contact, - @PartialBody() data: Partial + @PartialBody() data: UpdateContactDto // Should be Partial ): Promise { return await ContactTransformer.updateOneByContact(auth, target, data); }