This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user