Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit af19b7d

Browse files
ArayBWardormeur
authored andcommitted
Prevent deleted dojo from matching with duplicate lead (#422)
Some Dojo leads are linked to multiple Dojos which preventes a user from completing a new Dojo application. This will allow the user workflow to progress. A separate investigation into the duplicate lead issue needs to be done for a longer term fix.
1 parent f8942b4 commit af19b7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/controllers/lead/save.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = function (args, done) {
3434
var mergedList = _.map(leads, function (lead) {
3535
var dojo = _.find(dojos, { dojoLeadId: lead.id });
3636
if (dojo) {
37-
if (dojo.verified) lead = undefined;
37+
if (dojo.verified || dojo.deleted) lead = undefined;
3838
if (!dojo.verified) lead.dojo = dojo;
3939
}
4040
return lead;

0 commit comments

Comments
 (0)