Skip to content

Commit

Permalink
prospect duplication logic fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
samisa-abeysinghe committed Oct 22, 2022
1 parent 21df92a commit c11cd54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ service graphql:Service /graphql on new graphql:Listener(4000) {
remote function add_prospect(Prospect prospect) returns ProspectData|error? {
Prospect|error? prospectRaw = db_client -> queryRow(
`SELECT *
FROM avinya_db.applicant_consent
FROM avinya_db.prospect
WHERE (email = ${prospect.email} OR
phone = ${prospect.phone}) AND
active = TRUE;`
Expand Down

0 comments on commit c11cd54

Please sign in to comment.