Skip to content

Commit

Permalink
some adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
luancazarine committed May 2, 2024
1 parent 8960f47 commit 92088bf
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default {
ownerId: {
type: "string",
label: "Owner Id",
description: "The user Id related to the lead.",
description: "The user Id related to the lead.You can find the user IDs in your account -> settings -> users & controls -> users, click on some user and the ID will be in URL.",
},
score: {
type: "integer",
Expand Down Expand Up @@ -145,7 +145,8 @@ export default {
? `{name: "email", operator:"eq",value:["${this.email}"]},`
: ""}${this.phoneNumber
? `{name: "phoneNumber", operator:"eq",value:["${this.phoneNumber}"]}`
: ""}]){
: ""}],
expression:"( ( a ) and b)"){
code
status
message
Expand All @@ -159,7 +160,7 @@ export default {
},
});

if (duplicateCheck.data.fetchLead.data) {
if (duplicateCheck.data?.fetchLead?.data?.length) {
$.export("$summary", "A lead with the same email and phone number already exists.");
return duplicateCheck.data;
}
Expand Down

0 comments on commit 92088bf

Please sign in to comment.