Skip to content

Commit

Permalink
Fix update contact validation
Browse files Browse the repository at this point in the history
  • Loading branch information
wpf500 committed Nov 21, 2024
1 parent a96b591 commit f14fd57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/src/api/controllers/ContactController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class ContactController {
async updateContact(
@CurrentAuth({ required: true }) auth: AuthInfo,
@TargetUser() target: Contact,
@PartialBody() data: Partial<UpdateContactDto>
@PartialBody() data: UpdateContactDto // Should be Partial<UpdateContactDto>
): Promise<GetContactDto | undefined> {
return await ContactTransformer.updateOneByContact(auth, target, data);
}
Expand Down

0 comments on commit f14fd57

Please sign in to comment.