This commit is contained in:
2023-02-06 22:20:13 +00:00
parent 6d536b9e92
commit 78ffb9a7f6
2 changed files with 2 additions and 6 deletions

View File

@@ -271,7 +271,6 @@ namespace Sockeye.Biz
await SockBotProcessPurchasesIntoLicenses.DoWorkAsync(); await SockBotProcessPurchasesIntoLicenses.DoWorkAsync();
if (!KeepOnWorking()) return; if (!KeepOnWorking()) return;
//JOB SWEEPER //JOB SWEEPER
await CoreJobSweeper.DoWorkAsync(); await CoreJobSweeper.DoWorkAsync();
if (!KeepOnWorking()) return; if (!KeepOnWorking()) return;

View File

@@ -358,17 +358,14 @@ namespace Sockeye.Biz
if (newLicense == null) if (newLicense == null)
{ {
//did not save, throw an error //did not save, throw an error
throw new System.ApplicationException($"Error creating purchase: {lbiz.GetErrorsAsString()} for product item: {SalesItemProductVendorCode} vendor data :{vn.VendorData}"); throw new System.ApplicationException($"Error creating license from purchases: {lbiz.GetErrorsAsString()}");
} }
} }
} }
} }
catch (Exception ex) catch (Exception ex)
{ {
var err = "SockBotProcessPurchasesIntoLicenses error running job"; var err = "SockBotProcessPurchasesIntoLicenses exepected exception error running job";
//serious issue requires immediate notification //serious issue requires immediate notification
await NotifyEventHelper.AddOpsProblemEvent(err, ex); await NotifyEventHelper.AddOpsProblemEvent(err, ex);
log.LogError(ex, err); log.LogError(ex, err);