Skip to content

Commit

Permalink
fix: Sync note to call log
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdong262 committed Aug 5, 2020
1 parent e6963cd commit d130530
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 24 deletions.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "engage-voice-browser-extension-hubspot",
"version": "0.6.0",
"version": "0.7.0",
"description": "Experimental Engage Voice browser extension for Hubspot",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -67,7 +67,7 @@
"react-dom": "16.13.0",
"react-draggable": "^4.2.0",
"recursive-assign": "0.2.0",
"ringcentral-embeddable-extension-common": "0.9.1",
"ringcentral-embeddable-extension-common": "0.9.5",
"shelljs": "^0.8.2",
"standard": "^12.0.1",
"style-loader": "0.21.0",
Expand Down
7 changes: 1 addition & 6 deletions src/feat/log-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,7 @@ async function doSyncOne (contact, body, formData, isManuallySync) {
if (!contactId) {
return notify('No related contact', 'warn')
}
let desc = formData.description
const sid = _.get(body, 'call.telephonySessionId') || 'not-exist'
const sessid = autoLogPrefix + sid
if (!isManuallySync) {
desc = await ls.get(sessid) || ''
}
let desc = body.description
const type = isCompany ? 'COMPANY' : 'CONTACT'
let ownerId = await getOwnerId(contact.id, type)
if (!ownerId) {
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "RingCentral Embeddable Engage Voice for HubSpot",
"description": "Experimental Engage Voice browser extension for Hubspot",
"version": "0.6.0",
"version": "0.7.0",
"permissions": [
"http://*/",
"https://*/",
Expand Down

0 comments on commit d130530

Please sign in to comment.