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))
{