mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 00:46:08 -06:00
Merge pull request #158 from hargata/Hargata/reminder.email.endpoint
stop method from returning prematurely.
This commit is contained in:
commit
b837a2e528
@ -452,7 +452,7 @@ namespace CarCareTracker.Controllers
|
||||
results.RemoveAll(x => !urgencies.Contains(x.Urgency));
|
||||
if (!results.Any())
|
||||
{
|
||||
return Json(new OperationResponse { Success = false, Message = "No reminders could be found with those parameters" });
|
||||
continue;
|
||||
}
|
||||
//get list of recipients.
|
||||
var userIds = _userAccessDataAccess.GetUserAccessByVehicleId(vehicleId).Select(x => x.Id.UserId);
|
||||
@ -464,7 +464,7 @@ namespace CarCareTracker.Controllers
|
||||
};
|
||||
if (!emailRecipients.Any())
|
||||
{
|
||||
return Json(new OperationResponse { Success = false, Message = "No recipients could be found with those parameters" });
|
||||
continue;
|
||||
}
|
||||
var result = _mailHelper.NotifyUserForReminders(vehicle, emailRecipients, results);
|
||||
operationResponses.Add(result);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user