Skip to content

Commit

Permalink
Use id to match deal owner, so contact with no email would be OK
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdong262 committed Apr 7, 2022
1 parent ba1ce0f commit 21076c3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pipedrive-embeddable-ringcentral-phone-spa",
"version": "3.6.1",
"version": "3.6.2",
"description": "Add RingCentral Embeddable Voice widgets to Pipedrive",
"keywords": [
"RingCentral",
Expand Down
2 changes: 1 addition & 1 deletion src/features/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function addFilter (contact) {
object: 'person',
field_id: fid,
operator: '=',
value: contact.emails[0],
value: contact.id,
extra_value: null
}
]
Expand Down
6 changes: 3 additions & 3 deletions src/features/person-fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -633,9 +633,9 @@ async function getPersonFields () {

export default async () => {
const arr = await getPersonFields()
const emailFiled = arr.find(a => a.key === 'email')
if (emailFiled && emailFiled.id) {
return emailFiled.id
const nameField = arr.find(a => a.key === 'id')
if (nameField && nameField.id) {
return nameField.id
} else {
notify('Can not sync log to deal, due to no email person field', 10000)
}
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Ringcentral Embeddable Widgets for Pipedrive",
"version": "3.6.0",
"version": "3.6.2",
"description": "Add RingCentral Embeddable Voice widgets to Pipedrive",
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1YqYvCEeGGNOgtKrx8DfG33ujx7NgAwbyVpikug4mHiNvKZYWulw7lY5fjaD8wAy5bmXnkfULDzqMkL8UOxUcf8qD2lJFcLm+BqBtqNnoSz00vwjSOxXrcDvpvsMrjEZkI7N/FD60sTWp1U+QOehua7OboUpXb4iV7TQfppz3PsCz7qGOa4PWjUMAZTTgomUtW47Es6f/vjIeejs7Ihro3Al5Jo3SWIbjpjSU9BK34XgFvtcZx3lZQgfFiK+ZNyxlx8mgC/PLqJB+uX63ywMrT86TdcfxBuaThy98S8SCXjZTpHOP6X5pmGMk0lPM06hwxmSCBZgHOHL/Wk6r8FUlQIDAQAB",
"permissions": [
Expand Down

0 comments on commit 21076c3

Please sign in to comment.