From c11cd546f79c798352c61aa6677b9e3c88f8d148 Mon Sep 17 00:00:00 2001 From: samisa-abeysinghe Date: Sat, 22 Oct 2022 06:01:27 +0530 Subject: [PATCH] prospect duplication logic fixed --- api/main.bal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/main.bal b/api/main.bal index a5b6f6c..087cfa9 100644 --- a/api/main.bal +++ b/api/main.bal @@ -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;`