This commit is contained in:
2023-01-19 02:18:24 +00:00
parent 9800d5a672
commit 1332ddca65
8 changed files with 56 additions and 49 deletions

View File

@@ -476,7 +476,7 @@ namespace Sockeye.Biz
////////////////////////////////////////////////////////////////////////////////////////////////
//UPDATE
//
internal async Task<License> PutAsync(License putObject)
internal async Task<License> PutAsync(License putObject, bool importingDoNotNotify = false)
{
var dbObject = await GetAsync(putObject.Id, false);
if (dbObject == null)
@@ -500,11 +500,12 @@ namespace Sockeye.Biz
try
{
await ct.SaveChangesAsync();
//TODO: NOTIFICATION ON NEW KEY
//BUT NOT if REVOKED token is the regto, we don't want them to know, just let AyaNova install it
//this is for non-payment scenarios or chargebacks after license was sent
if (!importingDoNotNotify)
{
//TODO: NOTIFICATION ON NEW KEY
//BUT NOT if REVOKED token is the regto, we don't want them to know, just let AyaNova install it
//this is for non-payment scenarios or chargebacks after license was sent
}
}
catch (DbUpdateConcurrencyException)
@@ -653,7 +654,7 @@ namespace Sockeye.Biz
}
//MISC / NOTSET product group are not valid for keys
if (proposedObj.PGroup == ProductGroup.Misc || proposedObj.PGroup == ProductGroup.NotSet )
if (proposedObj.PGroup == ProductGroup.Misc || proposedObj.PGroup == ProductGroup.NotSet)
{
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "pGroup");
return;