This commit is contained in:
2020-06-13 13:58:08 +00:00
parent 29effecb75
commit 055ce0ee6c

View File

@@ -63,6 +63,13 @@ namespace rockfishCore.Controllers
return BadRequest("E1000 - Can't trial; there is already a purchased license issued for this database Id");
}
//can't do this if there is a trial request already pending
if (await ct.TrialRequest.Where(z => z.DbId == r.DbId && z.DtProcessed == null).AnyAsync())
{
return Ok("Request awaiting approval");
}
System.Diagnostics.Debug.WriteLine("RvRController:Post - TODO: Test MustBeOlderThan date code");
//if there is an active trial for this db then can't do this they must request we re-release it or completely zap the database instead