This commit is contained in:
2022-09-10 22:01:48 +00:00
parent 56af1db7e7
commit 628364bcaa
8 changed files with 40 additions and 2 deletions

View File

@@ -5211,6 +5211,7 @@ namespace AyaNova.Biz
catch (Exception ex)
{
log.LogError(ex, $"error generating Work order from PM {p.Serial}");
DbUtil.HandleIfDatabaseUnavailableTypeException(ex);
await NotifyEventHelper.AddGeneralNotifyEvent(AyaType.PM, p.Id, NotifyEventType.PMGenerationFailed, $"Error generating Work order from PM {p.Serial}", "Preventive Maintenance", ex);
if (!KeepOnWorking(log)) return;
continue;