IO-797 Add fault tolerance for scanning.

This commit is contained in:
Patrick Fic
2021-03-24 11:01:43 -07:00
parent 1f6d0abe21
commit de14a8c4ac
4 changed files with 104 additions and 78 deletions

View File

@@ -117,6 +117,15 @@ namespace BodyshopPartner.Utils
private static async Task UpsertQueueItem(DTO_QueueItem item)
{
if (item.Job is Boolean)
{
//throw an error
logger.Error("The currently process job is missing part of the EMS set and could not be processed.");
string msg = Properties.Resources.Msg_NewJobUploadError;
Notifications.notifier.ShowError(msg);
return;
}
//TODO: This should perform some sort of upsert to update the vehicle with more up to date information.
//Strip out what isn't needed by replacing it with nulls to save DB space.