This commit is contained in:
2019-05-20 21:55:51 +00:00
parent 32e9650061
commit d9f7a69da6
5 changed files with 8 additions and 36 deletions

View File

@@ -186,8 +186,8 @@ namespace AyaNova.Api.Controllers
if (!badRequest)
{
//check if object exists
//Updated code: this used to check if the ownerId was -1 to see if it didn't exist, but since ownerId zapped this seems like the next best way to do it
//Not sure at all what the ownerid check was doing before that verified it's existance, the code is long gone now and I can't be arsed to look it up in the repo history
//Updated code: this used to check if the o wnerId was -1 to see if it didn't exist, but since ow nerId zapped this seems like the next best way to do it
//Not sure at all what the ow nerid check was doing before that verified it's existance, the code is long gone now and I can't be arsed to look it up in the repo history
//If the tests pass then it's fine :)
if (!BizObjectExistsInDatabase.Exists(attachToObject))
{

View File

@@ -264,7 +264,7 @@ namespace AyaNova.Api.Controllers
OpsJob j = new OpsJob();
j.Name = $"Import AyaNova7 data (import file \"{filename}\"";
j.JobType = JobType.ImportV7Data;
j.OwnerId = UserIdFromContext.Id(HttpContext.Items);
//j.O wnerId = UserIdFromContext.Id(HttpContext.Items);
j.JobInfo = jobInfo.ToString();
JobsBiz.AddJob(j, ct);
return Accepted(new { JobId = j.GId });//202 accepted

View File

@@ -19,8 +19,8 @@ namespace AyaNova.Models
public DateTime Created { get; set; }
public uint ConcurrencyToken { get; set; }
[Required]
public long OwnerId { get; set; }
// [Required]
// public long O wnerId { get; set; }
[Required]
public string Name { get; set; }
@@ -43,7 +43,7 @@ namespace AyaNova.Models
public OpsJob(){
GId=new Guid();
Created=DateTime.UtcNow;
OwnerId=1;
// O wnerId=1;
Name="new job";
Exclusive=false;
StartAfter=Created;