8000 deleting lead after marking as contact · vishal-coder/CRM_backend@cced345 · GitHub
[go: up one dir, main page]

Skip to content

Commit cced345

Browse files
committed
deleting lead after marking as contact
1 parent 109ee5b commit cced345

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

controllers/LeadController.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ export const MarkLeadAsContact = async (req, res) => {
116116

117117
console.log("inside MarkLeadAsContact----------------", id);
118118

119-
const response = await updateLeadById(id);
120-
121-
console.log("response of update lead is", response);
122119
const lead = await getLeadById(id);
123120
console.log("lead", lead);
124121
const contact = {
@@ -144,6 +141,8 @@ export const MarkLeadAsContact = async (req, res) => {
144141
console.log("calling contact emmiter from lead controller");
145142
newContactEmmiter(client, 10000, pipeline);
146143
const contactResult = await insertContact(contact);
144+
// const response = await updateLeadById(id);
145+
const response = await deleteLeadById(id);
147146

148147
console.log("MarkLeadAsContact contactResult is---", contactResult);
149148

0 commit comments

Comments
 (0)
0