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

Commit

Permalink
Prevent deleted dojo from matching with duplicate lead (#422)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ArayB authored and Wardormeur committed Apr 15, 2019
1 parent f8942b4 commit af19b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/controllers/lead/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = function (args, done) {
var mergedList = _.map(leads, function (lead) {
var dojo = _.find(dojos, { dojoLeadId: lead.id });
if (dojo) {
if (dojo.verified) lead = undefined;
if (dojo.verified || dojo.deleted) lead = undefined;
if (!dojo.verified) lead.dojo = dojo;
}
return lead;
Expand Down

0 comments on commit af19b7d

Please sign in to comment.