Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #372 from beabee-communityrm/fix/contact-role-dupl…
Browse files Browse the repository at this point in the history
…icate-key

fix: duplicate key on update contact role
  • Loading branch information
wpf500 authored Feb 28, 2024
2 parents adf878e + 779722d commit 3dadc4c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/core/services/ContactsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ class ContactsService {
role.dateExpires = updates.dateExpires || role.dateExpires;
} else {
role = getRepository(ContactRole).create({
contact: contact,
type: roleType,
dateAdded: updates?.dateAdded || new Date(),
dateExpires: updates?.dateExpires || null
Expand Down

0 comments on commit 3dadc4c

Please sign in to comment.