Remove deprecated EMAIL, PHONE, LINK (#7551)
In this PR: - remove deprecated EMAIL, PHONE, LINK field types (except for Zapier package as there is another work ongoing) - remove composite currency filter on currencyCode, actor filter on name and workspaceMember as the UX is not great yet
This commit is contained in:
@ -32,10 +32,7 @@ export class MessageParticipantPersonListener {
|
||||
>,
|
||||
) {
|
||||
for (const eventPayload of payload.events) {
|
||||
if (
|
||||
!eventPayload.properties.after.emails?.primaryEmail &&
|
||||
!eventPayload.properties.after.email
|
||||
) {
|
||||
if (!eventPayload.properties.after.emails?.primaryEmail) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -43,9 +40,7 @@ export class MessageParticipantPersonListener {
|
||||
MessageParticipantMatchParticipantJob.name,
|
||||
{
|
||||
workspaceId: payload.workspaceId,
|
||||
email:
|
||||
eventPayload.properties.after.emails?.primaryEmail ??
|
||||
eventPayload.properties.after.email,
|
||||
email: eventPayload.properties.after.emails?.primaryEmail,
|
||||
personId: eventPayload.recordId,
|
||||
},
|
||||
);
|
||||
@ -60,10 +55,6 @@ export class MessageParticipantPersonListener {
|
||||
) {
|
||||
for (const eventPayload of payload.events) {
|
||||
if (
|
||||
objectRecordUpdateEventChangedProperties(
|
||||
eventPayload.properties.before,
|
||||
eventPayload.properties.after,
|
||||
).includes('email') ||
|
||||
objectRecordUpdateEventChangedProperties(
|
||||
eventPayload.properties.before,
|
||||
eventPayload.properties.after,
|
||||
@ -73,9 +64,7 @@ export class MessageParticipantPersonListener {
|
||||
MessageParticipantUnmatchParticipantJob.name,
|
||||
{
|
||||
workspaceId: payload.workspaceId,
|
||||
email:
|
||||
eventPayload.properties.before.emails?.primaryEmail ??
|
||||
eventPayload.properties.before.email,
|
||||
email: eventPayload.properties.before.emails?.primaryEmail,
|
||||
personId: eventPayload.recordId,
|
||||
},
|
||||
);
|
||||
@ -84,9 +73,7 @@ export class MessageParticipantPersonListener {
|
||||
MessageParticipantMatchParticipantJob.name,
|
||||
{
|
||||
workspaceId: payload.workspaceId,
|
||||
email:
|
||||
eventPayload.properties.after.emails?.primaryEmail ??
|
||||
eventPayload.properties.after.email,
|
||||
email: eventPayload.properties.after.emails?.primaryEmail,
|
||||
personId: eventPayload.recordId,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user